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') {
$
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
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-
TED]]
> Sent: Wednesday, July 11, 2001 2:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Back/Forward
>
>
>
> I have a page that brings up the info on a rock, I wanted to
> add the functionality of doing like a and option
> to go thru all the rocks in my database. I can'
I have a page that brings up the info on a rock, I wanted to
add the functionality of doing like a and option
to go thru all the rocks in my database. I can't figure out how
to exactly do this, could someone give me some help?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
5 matches
Mail list logo