Page 1 of 1

Whats this code?

Posted: Sat Jan 04, 2003 1:59 am
by eggoz
I got help before on some code and this was part of it. I was wondering what this part of the code was used for.

Code: Select all

$nr = mysql_num_rows($results); 
for ($a=0; $a<$nr; $a++) &#123;
I can give the rest of the code if needed. Thanks.

Posted: Sat Jan 04, 2003 3:31 am
by mydimension
it gets the number of rows from the result set indicated by $result. it then does something once for every row. what exactly is unknown as the entire code is not here.