Megatron
07-05-2006, 07:20 PM
I'm currently pulling out articles from a database but the articles are quite large and when i display more than 3 articles on a single page the page becomes too chaotic with text.
How can only show the first 50 words of the article?
<?php echo $entry; ?> is all i'm using to display the articles and i'm using a straight forward sql statement as well if it makes any difference? :
$sql = "SELECT * FROM php_blog WHERE category='$category' ORDER BY timestamp DESC LIMIT 5";
Thanks
How can only show the first 50 words of the article?
<?php echo $entry; ?> is all i'm using to display the articles and i'm using a straight forward sql statement as well if it makes any difference? :
$sql = "SELECT * FROM php_blog WHERE category='$category' ORDER BY timestamp DESC LIMIT 5";
Thanks