sungpeng Posted April 3, 2009 Share Posted April 3, 2009 <?php include ("".$_SERVER['DOCUMENT_ROOT']."/housing/includes/config.php"); $uid='sungpeng1'; $query = "SELECT * from users where loginname='$uid'"; while($resu=mysql_query($query)){ echo "$resu[llid]"; } ?> Hi I see nothing wrong with my script, but it give me an error FATAL ERROR maximum execution time is 30 seconds on line 6. Why is that so? Can anyone help? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 3, 2009 Share Posted April 3, 2009 Because you are executing the mysql_query() in the while() loop. It is just executing the query over and over and over. You did read a basic php/mysql book before attempting this? 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.