Take the truncating out of the picture, and just concentrate on returning
two results from mysql.  If that works, then try it with rows that contain
an exclamation mark (!).

If they both work, THEN concentrate on truncating the variable down.

Let us know how far you get, so we can pinpoint the problem.


Justin


on 05/03/03 12:45 AM, Sebastian ([EMAIL PROTECTED]) wrote:

> Good morning all.
> 
> I have a mysql query that fetches some text. I am limiting the results to
> two (2).
> 
> Then i am limiting the text to 30 characters and truncating it with some
> "...." Like this:
> 
> if(strlen($title) >= 30) {
> $title = substr(trim($title),0,30);
> $title = $title.'..';
> }
> 
> But when a $title contains a ! (exclamation point) it only shows one result.
> Why is an ! interfering?
> 
> Any suggestions?
> 
> warm regards,
> Sebastian - [BBR] Gaming Clan
> http://www.broadbandreports.com
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to