Posted by David Haynes on 10/23/05 03:56
phpuser32423 wrote:
> Hi all
>
> I have been searching for hours on the php website for a function that
> will allow me to display just the first 50 chars of a mysql text field
> in a results table, but i'm having no luck. I need it to create a
> results page for a site i'm creating in php. Can anyone help with this
> problem?
>
> Kind regards
>
> Marc
>
$str50 = substr($mystring, 0, 50);
-david-
Navigation:
[Reply to this message]
|