April 29th, 2000, 08:45 AM
Join Date: Apr 2000
Time spent in forums: < 1 sec
Reputation Power: 0
is there ne way where we can stop the successive iterations more than certain no. of times running on MySQL using PHP..
like if i'm hosting a webserver supporting PHP+MySQL n one of my customer writes a script like below (may be by mistake)
//normal mysql connect statements
$query="select * from members ";
/* here he is performing lot of mysql statements like fetching evry record frm result */
/* and alas he forgets to increment counter here */
then this while loop will never end
is there ne way to stop such kinda things.
(the same thing happened to me when i forgot to increment counter --then there was lot of overhead on my comp)