note 10475 added to mysql_fetch_row
| From: | dhopkins at badscienceprojects dot com | Date: | Fri, 05 Jan 2001 20:42:40 +0000 |
| Subject: | note 10475 added to mysql_fetch_row | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9417@lists.php.net to get a copy of this message | ||
Or, if you're not comfortable with 'for' loops and dont want/need that extra $count
variable hanging around, use:
while ($row = mysql_fetch_row ($query_result_handle))
{
print "Value stored at the first index position is $row[0]<BR>";
}
mysql_close($db);
http://www.php.net/manual/function.mysql-fetch-row.php