Ok, I am making a news script. I wanted to put a option in to if the article is more then like 100 characters it will cut it off and add a more... at the end, that is linked to the whole thing. How would I do that? Here is the code for my current news.
<?PHP
$query = "SELECT * FROM news";
$result = mysql_query("Select * from news") or die();
while ($sqlnews = mysql_fetch_array($result)) {
?>
<table cellpadding=0 cellspacing=0>
<tr>
<td><span class="newsdate">~<?PHP echo $sqlnews['date']; ?>~</span></td>
<tr>
<tr>
<td><span class="news"><?PHP echo $sqlnews['news']; ?></span></td>
</tr>
<tr>
<td><hr></td>
</tr>
</table>
<?PHP
}
?>
Can anyone explain to me how I would cut it off and put a more... so the news section is not the whole page.