-CrAzY- Posted August 10, 2007 Share 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 Link to comment Share on other sites More sharing options...
-CrAzY- Posted August 10, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
DJ Rankin Posted August 10, 2007 Share Posted August 10, 2007 Re: Its Says Unexpected T_PUBLIC, Look>>>>>>>>>>>> YOU DONT NEED TO KEEP POSTING IT!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
-CrAzY- Posted August 10, 2007 Author Share Posted August 10, 2007 Re: Its Says Unexpected T_PUBLIC, Look>>>>>>>>>>>> hi hi Quote Link to comment Share on other sites More sharing options...
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.