mysql_fetch_array pointer
| From: | Jeffrey Barendse | Date: | Tue, 29 Aug 2000 10:55:11 +0000 |
| Subject: | mysql_fetch_array pointer | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2437@lists.php.net to get a copy of this message | ||
I like to use a script like this:
$result_cat = mysql_query("select cat_naam from categorie order by
cat_naam");
while($row = mysql_fetch_array($result_cat))
{ echo '<OPTION VALUE="' . (urlencode($row[cat_naam])) . '">' .
$row[cat_naam]; }
while($row = mysql_fetch_array($result_cat))
{ echo $row[cat_naam]; }
In the first while function it works fine. But in the other I have no date.
I suppose the mysql_fetch_array sets a pointer. Is there a way to reset the
pointer so I can reuse a query?
Regards,
Jeffrey Barendse
WireITup