Whats this code?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
eggoz
Forum Commoner
Posts: 43
Joined: Fri Dec 27, 2002 8:51 pm

Whats this code?

Post 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.
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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.
Post Reply