Show abbreviated article
| From: | Cilfa | Date: | Tue, 14 Aug 2001 08:40:21 +0000 |
| Subject: | Show abbreviated article | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-11276@lists.php.net to get a copy of this message | ||
Hi,
On my website I want to display some articles, in Slashdot style. The
main page should only display the first 20 words of the article, and
users should be able to click on a link to view the entire article.
The articles are stored in a MySQL database, the body of the article in a
blob-field.
My question is this: how can I select only those first 20 words in the
PHP code?
I hope somebody can help me with this.
Cilfa