Re: Two questions
| From: | Diogo Zulli | Date: | Tue, 12 Dec 2000 10:54:18 +0000 |
| Subject: | Re: Two questions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29860@lists.php.net to get a copy of this message | ||
On [12 December 2000 12:23] (Siim Einfeldt aka Itpunk), wrote:
} O.K., what do I need? Lets say that I have about 10 pages (A4) of text in
} one mysql database column. I don`t want to show it all on one page, as it
} would be too much, 2-3 pages of text would be maximum what I`d be ready to
} show on one page. But how could I get the info out of the database for
} splitting the thing? Probably I would need to split the text between the
} chapters(or just line breaks), not from somewhere in the middle of the
} text. How could I do it? To explain it a bit more, I guess you all have
} seen(done) sites with articles where long articles are split into smaller
} peaces and in the bottom of the page are links : page 1 page2 page3
} etc. How could I do it the best and the easiest way?
SELECT * FROM x LIMIT 1,10;
Where 1 = Start record,
10 = How many records...
Nexts queries will be:
SELECT * FROM x LIMIT 11,10;
and
SELECT * FROM x LIMIT 21,10;
etc...
- Diogo Zulli
----------------------[ www.sphynx.com.br ]---------------------------
"Why Live on The Edge When You Can BASE Jump Off It"