[SOLVED] Point $row=mysql_fetch_array($res) to another index
Posted: Fri Jun 11, 2004 1:48 am
Hello
I have this :
No again I have to do the same thing for a second time (cannot be put in a function)
Is there any way to avoid the query and just point $row back to first index of $res ?
Thanks
I have this :
Code: Select all
$res=mysql_query("SELECT * FROM category");
while($row=mysql_fetch_array($res))
{
.....something
}Code: Select all
$res=mysql_query("SELECT * FROM category");
while($row=mysql_fetch_array($res))
{
.....something else
}Is there any way to avoid the query and just point $row back to first index of $res ?
Thanks