resetting $res from mysql_fetch_row()?
| From: | Donny Lee | Date: | Wed, 08 Jan 2003 09:59:27 +0000 |
| Subject: | resetting $res from mysql_fetch_row()? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24646@lists.php.net to get a copy of this message | ||
hi there,
any hint on resetting a $res from mysql_fetch_row()?
my sample code is something like this:
$res = mysql_query( ..... ) or die ("Query failed");
while ( list ( $gid, $pSubSetName) = mysql_fetch_row($res) )
{ print "$gid - $pSubSetName" }
:
while ( list ( $gid, $pSubSetName) = mysql_fetch_row($res) )
{ print "$gid - $pSubSetName" }
the 1st while works fine, but not the 2nd one. I geuss there
should be something like resetting the internal pointer between
the 2 while loops?
--
// Donny