Lamez Posted March 17, 2008 Share Posted March 17, 2008 is there a way I could make the rest of the page from loading? for example <?php $q = mysql_query("SELECT * FROM `users` WHERE `username` = '$session->username'"); $row = mysql_fetch_array($q); $ban = $row['ban']; if ($ban == (1)){ echo "Username is Banned!"; //somthing to make the rest of the page from loading... } ?> Quote Link to comment https://forums.phpfreaks.com/topic/96574-stop-loading/ Share on other sites More sharing options...
discomatt Posted March 17, 2008 Share Posted March 17, 2008 exit('optional message'); Quote Link to comment https://forums.phpfreaks.com/topic/96574-stop-loading/#findComment-494232 Share on other sites More sharing options...
Lamez Posted March 17, 2008 Author Share Posted March 17, 2008 tyvm :D <?php $q = mysql_query("SELECT * FROM `users` WHERE `username` = '$session->username'"); $row = mysql_fetch_array($q); $ban = $row['ban']; if ($ban == (1)){ echo "Username is Banned!"; exit; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/96574-stop-loading/#findComment-494233 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.