Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
Let's see i solved thhe problem... I did since I was making the select with WHERE ID = '$ID' so I get the var $ID., Thx for the help of all Miguel "Matt" <[EMAIL PROTECTED]> escreveu na mensagem 034901c2bc37$41429160$[EMAIL PROTECTED]">news:034901c2bc37$41429160$[EMAIL PROTECTED]... > >"Miguel

Re: [PHP] Next and Previous

2003-01-14 Thread Matt
>"Miguel Brás" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > That's not the case, I tested it on ID549 and the previous one should be 548 and he still assume -1 Works for me. Are you adding the ?ID=500 to the url? If you don't have that, then the ID is 0, so

Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
y 2003 11:06 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Next and Previous > > > Hi, > > it's giving me an error. it assumes the next page as > news.php?ID=1 and the previous as news.php?ID=-1 Any hint for that? > > Miguel > > "Chris Shi

RE: [PHP] Next and Previous

2003-01-14 Thread Timothy Hitchens \(HiTCHO\)
esday, 15 January 2003 11:06 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Next and Previous > > > Hi, > > it's giving me an error. it assumes the next page as > news.php?ID=1 and the previous as news.php?ID=-1 Any hint for that? > > Miguel > > "C

Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
Hi, it's giving me an error. it assumes the next page as news.php?ID=1 and the previous as news.php?ID=-1 Any hint for that? Miguel "Chris Shiflett" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Miguel Brás <[EMAIL PROTECTED]> wrote: > > suppose, the

Re: [PHP] Next and Previous

2003-01-14 Thread Chris Shiflett
--- Miguel Brás <[EMAIL PROTECTED]> wrote: > suppose, the page you're seeing is > http://www.x.com/news.php?ID=501 how to add > a link for the page to show the ID=502 and the > ID=500 Next Previous Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] Next and Previous

2003-01-14 Thread Miguel Brás
On a page i have all the records from a table. they are linkable. if you click on them, the will show the specific record id with all info on the row. how to make a link for the following record and one other for the previous? suppose, the page you're seeing is http://www.x.com/news.php?ID=50

Re: [PHP] Next and Previous links

2002-08-09 Thread Jason Wong
On Friday 09 August 2002 22:35, webmaster wrote: > Also, I keep getting an error that pg_fetch_row() and pg_fetch_array() > requires at least 2 parameters where all the examples I find only use > 1. Is this a DB configuration problem? Did you try the obvious step of consulting the manual? --

Re: [PHP] Next and Previous links

2002-08-09 Thread webmaster
I found an answer for anyone who may be interested on phpbuilder.com http://phpbuilder.com/annotate/message.php3?id=1010986 -Elkan webmaster wrote: > Hello, > > I've been trying write a .php page that displays 10 results per page > with links to the next 10 avail. I've found a couple example

RE: [PHP] Next and Previous links

2002-08-09 Thread Brian V Bonini
Could you send me the URL's for the MySQL examples? Thanks!! > -Original Message- > From: webmaster [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 09, 2002 10:36 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Next and Previous links > > > Hello, > >

[PHP] Next and Previous links

2002-08-09 Thread webmaster
Hello, I've been trying write a .php page that displays 10 results per page with links to the next 10 avail. I've found a couple examples on how to do this with MySQL, and I tried to convert it to work with Postgres with no luck. Has anyone ever done this using PHP4.0.6 and Postgres 7.1? Also,

RE: [PHP] next and previous buttons performing on a query

2002-06-13 Thread Brian McGarvie
you need to keep track of the last record and number to display to work out the values for limit. > -Original Message- > From: Chris Hewitt [mailto:[EMAIL PROTECTED]] > Sent: 13 June 2002 3:32 PM > To: Wilbert Enserink > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP]

Re: [PHP] next and previous buttons performing on a query

2002-06-13 Thread Chris Hewitt
Wilbert, Use the LIMIT tag in your select statement. You can also choose which matching record to start from. Another pure database question... HTH Chris Wilbert Enserink wrote: >Hi all, > > >I have this mySQL query giving me my result back. > >The info about the current db-record is showing

[PHP] next and previous buttons performing on a query

2002-06-13 Thread Wilbert Enserink
Hi all, I have this mySQL query giving me my result back. The info about the current db-record is showing. Now I want to display ' view next ' and ' view previous ' buttons on my website. which takes you to the same page but with the next record in the query result. Is there a clever way to d

[PHP] next and previous links

2001-10-05 Thread Mick Fitzpatrick
Hello After several days of reading various articles on the web I've 'finally' got a basic database working. The database is for a massive collection of my vinyl records. Therefore I would like to limit the results to about 20 per page and move forward/backward with 'next' and 'previous' links.