RE: [PHP] Back/Forward

2001-07-11 Thread Matthew Loff
PM To: php Subject: RE: [PHP] Back/Forward ah yes... that was my quick-n-dirty way ;) you could also do it this way: file.php?id=1&act=next if ($act eq 'next') { $sql = "SELECT id FROM table WHERE id > '$id' LIMIT 1"; } elsif ($act eq 'prev') { $

RE: [PHP] Back/Forward

2001-07-11 Thread scott [gts]
nal Message- > From: Matthew Loff [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 3:59 PM > To: 'scott [gts]'; 'php' > Subject: RE: [PHP] Back/Forward > > > > > Since IDs can disappear when records are delted, I think

RE: [PHP] Back/Forward

2001-07-11 Thread Matthew Loff
001 2:55 PM To: php Subject: RE: [PHP] Back/Forward how do you have the data stored? by ID number? if you have it stored by ID number, just put next/back links something like this: 0)? $id-1 : 0 ); $next = (($id<$max)? $id+1 : $max ); ?> previous next > -Original Message-

RE: [PHP] Back/Forward

2001-07-11 Thread scott [gts]
how do you have the data stored? by ID number? if you have it stored by ID number, just put next/back links something like this: 0)? $id-1 : 0 ); $next = (($id<$max)? $id+1 : $max ); ?> previous next > -Original Message- > From: Devin Atencio [mailto:[EMAIL PROTECTED]] > Sent: Wednes