Page 1 of 1

How to move record in PHP?

Posted: Sun Mar 02, 2008 9:00 pm
by cnnabc
I want to move record next and previous record in PHP?
Does any function to make it?
In ASP, it use "movenext" ? any idea? Thanks your help.

Re: How to move record in PHP?

Posted: Sun Mar 02, 2008 9:11 pm
by Christopher
Are you working with a database? Which library are you using? Usually in PHP you just keep fetching rows until null is returned.

Code: Select all

while ($row = mysql_fetch($result)) {
     // do something with $row
}