Need to limit amount of text loaded into a cell
Posted: Wed Jun 17, 2009 1:56 pm
I have a some news that im loading into a cell. You can see the actual page here. (take a look at the section towards the bottom that says Todays hot news). http://www.poshinteriors.com/09/news/
I only want to be able to display no more than 250 Characters. Does anyone know a nifty way to do this in a cell?
fastnews-code.php is the form that actually loads the text from a text document. Would it be eaiser to load the first 250 characters from the text file, or do it the way im doing it? If so..how
I only want to be able to display no more than 250 Characters. Does anyone know a nifty way to do this in a cell?
fastnews-code.php is the form that actually loads the text from a text document. Would it be eaiser to load the first 250 characters from the text file, or do it the way im doing it? If so..how
Code: Select all
<td height="110"></td>
<td colspan="2" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="imported/news.gif">
<!--DWLayoutTable-->
<tr>
<td width="32" height="38"> </td>
<td width="258"> </td>
<td width="11"> </td>
</tr>
<tr>
<td height="89"> </td>
<td valign="top"><p align="left"><?php
include_once( dirname(__FILE__) . '/fastnews-code.php' );
$fn = new fastNews();
echo $fn->display();
?></a> </p></td>
<td> </td>
</tr>
</table></td>