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... } ?> 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'); 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; } ?> Link to comment https://forums.phpfreaks.com/topic/96574-stop-loading/#findComment-494233 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.