Duhhh..... me mike. me like cumputors. This is where the honest geek admits his mistakes. I had a do while loop such as do { mysql_query ($qupdate, $link); $rslterror=mysql_error($link); $number++ } while ($rslterror!=null); I was trying to insert a new record with $number being a field requiring a uniqe number. If it failed, it should up the number by one and try again. I still don't have that working properly, but that wasn't my endless loop problem. You may have notice that I used a query ($qupdate) above. I defined $qinsert earlier on in my script and should of used it instead of $qupdate. $qupdate was undefined and therefore caused an edless loop. Anyway, I fixed my dumb mistake. If anyone would like to help me with a better one, maybe you can tell me if I am doing my do while correctly. It's only running through once, not getting a succesful insert and dropping out. Thanks On Monday 11 August 2003 02:02 am, Michael Cortes wrote: > I am using the Konqueror browser and browing to http://localhost/my.php > > Howerver, the script I wrote, doing various queries and lookups, inserts, > etc...... takes a while to complete. That is fine with me. I'll wait. > However, the server and/or browser will not wait. > > I believe the server is the one which will not wait because I have one > "echo" line at the beginning of the script which put a title "Udate > Students" athe the top center of the page and that writes then there is a > pause while the queries are run and then I get the following error in my > browser > > Fatal error: Maximum execution time of 30 seconds exceeded in > /var/www/html/student_info/ps2follett.php on line 139 > > > Can anyone help? -- Michael Cortes Fort LeBoeuf School District 34 East Ninth Street PO Box 810 Waterford PA 16441-0810 814.796.4795 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php