Re: displaying first 50 characters of a mysql text field?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: displaying first 50 characters of a mysql text field?

From: David Haynes <david.haynes2@sympatico.ca>
Date: Sun Oct 23 2005 - 02:56:26 CEST

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-
Received on Mon Oct 24 02:11:55 2005