Hi All,
Very new to web design and PHP, but I seem to be learning along the way.
I am building a HGV Drivers website for a friend of mine for his business. On the homepage I have managed to echo text for my 'Latest News' section. I would like to be able to limit the text to say about 60 characters. Does anyone know how I would be able to do this? Need a simple speaking solution lol.
This is the php code for my Latest News Section;
<?php do { ?>
<div id="newsRepeatRegion">
<div class="newsRepeatRegionHeadline"><?php echo $row_newsRS['news.headline']; ?></div>
<div class="newsRepeatRegionNews"><?php echo $row_newsRS['new.description'];
?>
</div>
<div class="newsRepeatRegionDate"><?php echo date("d F Y",strtotime($row_newsRS['news.date'])); ?></div>
<div class="newsRepeatRegionLink"><a href="news.php?id=<?php echo $row_newsRS['id']; ?>">Read More</a></div>
</div>
<?php } while ($row_newsRS = mysql_fetch_assoc($newsRS)); ?>
Hope someone can help!
Cheers
Kieron