-CrAzY- Posted August 10, 2007 Posted August 10, 2007 $page=$_SERVER['REQUEST_URI']; $close=mysql_query("SELECT * FROM closedpages WHERE url=$page",$c); while($r=mysql_fetch_array($close)) { if(mysql_num_rows($close) > 0 && $r['for'] == Public && $ir['user_level'] == 1) { die("This page has been closed for the Public. The reason for this is: {$r['reason']}."); } else if(mysql_num_rows($close) > 0 && $r['for'] == Staff && $ir['user_level'] > 1 && $ir['user_level'] != 2) { die("This page has been closed for Staff. The reason for this is: {$r['reason']}."); } else if(mysql_num_rows($close) > 0 && $r['for'] == All && $r['user_level'] != 2) { die("This page has been closed for everyone. The reason for this is: {$r['reason']}."); } print " "; } } function endpage() { print " Quote
-CrAzY- Posted August 10, 2007 Author Posted August 10, 2007 Re: Its Says Unexpected T_PUBLIC, Look>>>>>>>>>>>> i got rid of the ; on the end of the red line now its T_WHILE!! Quote
DJ Rankin Posted August 10, 2007 Posted August 10, 2007 Re: Its Says Unexpected T_PUBLIC, Look>>>>>>>>>>>> YOU DONT NEED TO KEEP POSTING IT!!!!!!!!!!!!!!!! Quote
-CrAzY- Posted August 10, 2007 Author Posted August 10, 2007 Re: Its Says Unexpected T_PUBLIC, Look>>>>>>>>>>>> hi hi Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.