Re: [PHP] Counting numbers on while..

2005-03-28 Thread Devraj Mukherjee
You basically dont need the for loop all you have to do is increment the value of the variable by one each time in the while loop Devraj Louie Miranda wrote: Hi, im trying to create a number loop on a table where the data came in a database. I have tried the for "loop" and counted $countCards_res

[PHP] Counting numbers on while..

2005-03-28 Thread Louie Miranda
Hi, im trying to create a number loop on a table where the data came in a database. I have tried the for "loop" and counted $countCards_result from the table where im going to get all the data. ## code ## while ($profile->fetchInto($row)) { for ($i = 1; $i <= $countCards_result; $i++) { $num = $