when $num++; executed $num will never be '10000'; you may change the while loop to while ($num < 10000) { while ($row = ... 2011/8/11 Jason Pruim <pruimj@xxxxxxxxx> > On Aug 10, 2011, at 9:36 PM, MUAD SHIBANI wrote: > > > Basically you can increase time limit for this file to handle your > request by using > > set_time_limit function ... > > Hi Maud, > > Looked into set_time_limit and even tried running it with a value of "120" > but it didn't help... > > I'm affraid I have a problem with the way the 2 while loops are interacting > and creating a infinite loop... > > BUT... I'm thinking there must be a better way... Maybe a while with a > foreach? Now I'm just thinking outloud :) > > Jason Pruim > pruimj@xxxxxxxxx >