<?php
include ($_SERVER['DOCUMENT_ROOT'].'/header.php');
include ($_SERVER['DOCUMENT_ROOT'].'/adtop.php');
if(mysql_num_rows($deals) > 0){
while($row = mysql_fetch_assoc($deals)){
echo '<div id="dealbox">';
echo '<div id="dealdesc class="more">';
echo $row['dealdesc'];
echo '</div>';
}
?>
How do I limit $row['dealdesc']
to show a maximum of 200 characters and display a 'read more' button which, when clicked, will display the full length of $row['dealdesc']
?