[PHP] Previous n Articles

2002-02-05 Thread jtjohnston
I'm using this code to create a Next n Articles on my index.page from my mysql database. I worked most of it out myself. Then I got some help. It works. I thought I understood my own code enough to be able to construct a Previous n Articles. I guess not. My coding skills need help. So how do I

Re: [PHP] Previous n Articles

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 09:59, jtjohnston wrote: I'm using this code to create a Next n Articles on my index.page from my mysql database. I worked most of it out myself. Then I got some help. It works. I thought I understood my own code enough to be able to construct a Previous n

Re: [PHP] Previous n Articles

2002-02-05 Thread jtjohnston
Jason, I'm not ssure I follow. $offset is the number i read in in my a href $limit is the number displayed. $num_rows is the number of rows in my database. What are you doing with $previous? $previous would be my string, not the previous offset? Could you show me again? if(!$offset) {

Re: [PHP] Previous n Articles

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 12:02, jtjohnston wrote: Jason, I'm not ssure I follow. $offset is the number i read in in my a href $limit is the number displayed. $num_rows is the number of rows in my database. Correct. What are you doing with $previous? $previous would be my string,