Re: Characters counting
| From: | elias | Date: | Thu, 19 Apr 2001 18:37:47 +0000 |
| Subject: | Re: Characters counting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49334@lists.php.net to get a copy of this message | ||
You can use MySql's LEFT() or even substring()
example:
SELECT substring(address,1, 20) as _addr FROM tablename
and you will have to look for field "_addr" in mysql results.
-elias
http://www.kameelah.org/eassoft
""Jorn van Eck"" <Jorn.van.Eck@iie.nl> wrote in message
news:9bkpd8$r77$1@toye.p.sourceforge.net...
> Hi there,
>
> Does someone know how to display for example150 characters from a $ set by
> MySQL?
> --
> Jorn van Eck
> Student Information Engineering
> Almere
> Tel: +31 614430902
> E-mail: Jorn.van.Eck@iie.nl
> Website: http://www.iie.nl/~eck13
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>