create a hyperlink:
$ptrN = $ptr + 20;
Next
$ptrP = $ptr - 20;
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 6:06 AM
Subject: [PHP] back and forward through a result query
Hi
I need to do the following, and have a slight idea of how to do it, but
I'm not sure...
I want to
t;;
?>
I hope this helps you.
Best regards,
Davy Obdam
The Netherlands
mailto:info@;davyobdam.com
> -Oorspronkelijk bericht-
> Van: Petre Agenbag [mailto:internet@;vsa.co.za]
> Verzonden: dinsdag 29 oktober 2002 13:07
> Aan: [EMAIL PROTECTED]
> Onderwerp: [PHP] back and forward thro
e in a search:
>
> $query = "SELECT * FROM mytable WHERE some criteria LIMIT $ptr,20";
> mysql_query($query) or die(mysql_error());
>
> To go to the next page, create a hyperlink:
> $ptrN = $ptr + 20;
> Next
> $ptrP = $ptr - 20;
>
> To: <[EMAIL PROTECTED]
bject: [PHP] back and forward through a result query
Hi
I need to do the following, and have a slight idea of how to do it, but
I'm not sure...
I want to do a "select id from table where something = "whatever" ",
then I will display all the "hits" from that query as
PS, also, I would need to know and handle the beginning and end of that
array, ie, if there isn't a next or previous, I wouldn't want to display
a next or forward button, or maybe disable it...
Thanks
On Tue, 2002-10-29 at 14:06, Petre Agenbag wrote:
> Hi
> I need to do the following, and have a
Hi
I need to do the following, and have a slight idea of how to do it, but
I'm not sure...
I want to do a "select id from table where something = "whatever" ",
then I will display all the "hits" from that query as links to a
"display" page, sending along the id's of the row.
On that next page, I
6 matches
Mail list logo