I want to have a movenext and move previus option in me site. De next work perfectli, but the move previus return the firstrecordset. Here are the code.
// Next recort work fine
$next_rec = "select * from people where contactid > $rec_id limit 1";
// previus record dont work, return the first record
$next_rec = "select * from people where contactid < $rec_id limit 1";
Any solution ?
Thanks,
Tomás
// Next recort work fine
$next_rec = "select * from people where contactid > $rec_id limit 1";
// previus record dont work, return the first record
$next_rec = "select * from people where contactid < $rec_id limit 1";
Any solution ?
Thanks,
Tomás
Comment