Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
eggoz
Forum Commoner
Posts: 43 Joined: Fri Dec 27, 2002 8:51 pm
Post
by eggoz » Sat Jan 04, 2003 1:59 am
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++) {
I can give the rest of the code if needed. Thanks.
mydimension
Moderator
Posts: 531 Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:
Post
by mydimension » Sat Jan 04, 2003 3:31 am
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.