problem in moving index to starting place

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

problem in moving index to starting place

Post by itsmani1 »

when i have used
$res = mysql_query($qry);
while($row = mysql_fetch_bject($res))
{
$row -> val1
}
at end when has fetched all the values i want to move result index at start
i mean i want to fetch all the vales again but with out again using "$res = mysql_query($qry);"
ryanlwh
Forum Commoner
Posts: 84
Joined: Wed Sep 14, 2005 1:29 pm

Post by ryanlwh »

mysql_data_seek($res,0);
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

okie thanx man.
its solved.

Mannan
Post Reply