table name - animals column name id, story
I am inserting certain amount of data in story column.
But I need to display only first 20 characters in row. plz suggest me how to display only specific amount of characters.
below is my code... to echo rows.
<?php foreach($rows as $row){ ?>
<?php echo htmlspecialchars_decode($row['story']); ?>
<?php } ?>