2011-10-29, 10:37 PM
I want to make a code in header to check if the user is logged in.
- If the user is logged in, then it should check the the database for the following: Inside mybb_users I made a table called UserCheck. I want it to check if the value in there is under 100.
-- If the value is under 100 it should redirect the user to a page called hey.php. If the user is allready on that page it should not keep redirecting him.
-- If the value is 100 or over it should not do anything.
- If the user is not logged in it should not do anything.
Does anyone have any idea how to do this?
I really hope someone can help me with this.
- If the user is logged in, then it should check the the database for the following: Inside mybb_users I made a table called UserCheck. I want it to check if the value in there is under 100.
-- If the value is under 100 it should redirect the user to a page called hey.php. If the user is allready on that page it should not keep redirecting him.
-- If the value is 100 or over it should not do anything.
- If the user is not logged in it should not do anything.
Does anyone have any idea how to do this?
I really hope someone can help me with this.