shorter the text

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Dear all

I have a databse and php page...I would like retrieve a database to PHP
page..but i don't want show the all text ...just want as like as little
description (like Apple is ... ... ) and now is display all text like
Apple is red, please teach mw how to do it...

my script:
<td width="348" align="left" bgcolor="#FFFFFF" class="content"><a
href="../whatnews_details.php?news_id=<?php echo
$row_news_summary['news_id']; ?>" target="_parent"><?php echo
$row_news_summary['news_description'];  ?></a></td><td width="10"
bgcolor="#FFFFFF" class="content">&nbsp;</td>

Re: shorter the text

Ace schreef:

Quoted text here. Click to load it

You could try something like this code :

$variabele = \"like Apple is all over the place.\";
$variabele = substr($variabele,0,10);
// $variabele = \"Like Apple is\"

echo $variabele."...";


Re: shorter the text wrote:

Quoted text here. Click to load it

look for "ellipsis" on the following page:

Re: shorter the text

very helpful...thanks


Quoted text here. Click to load it

Site Timeline