Hi,
I can't figure out how to limit the word count fetched from the database.
I simply want to show 10 words from the 'body' column.
I'm using the below echo code to display the information.
echo '<div class="menu"><div class="item">';
echo '<h1><a href="news/display/'.$row['id'].'">'.$row['title'].'</a></h1>';
echo '<img src="../'.$row['image'].'"/>';
echo '<p>'.$row['body'].'</p>';
echo '</div></div>';
Any help is appreciated.
Thanks.