Posts: 1,495
Threads: 131
Joined: Jul 2009
Reputation:
0
hm... not sure but maybe it's because you are using new queries and new mysql_store_result and mysql_free_result within the loop... So the mysql row is a different one for the next time..
Posts: 138
Threads: 19
Joined: Jul 2009
Reputation:
0
Sascha, I think it is too charge for the server. You can not do it differently?
Posts: 1,495
Threads: 131
Joined: Jul 2009
Reputation:
0
na it's not leny...
'cause it doesn't run 100 times..
it just runs as often until the result of the format or the numbers of found fields in the mysql query is not 0
As soon as the db is out of lines the loop stops (because of the goto)
All you do is just use the mysql_num_rows or mysql_row_format or w/e.. find out which fits best for you (although I guess the row format does)
the loop itself does exactly the same amount of runs as the while loop does
Posts: 624
Threads: 38
Joined: Feb 2010
Reputation:
0
y u no use break; instead of silly goto?
Posts: 1,495
Threads: 131
Joined: Jul 2009
Reputation:
0
depends on the code he wants to use...
he can use both, I just had goto in mind lol.. although it doesn't matter at all...