What exactly do you need?
If you have a variable that contains a string, you can do
echo substr($var,0,150)
to print the first 150 characters...
or, are you trying to limit the amount in the mysql query? I believe you
have to get the whole result then limit it in php, but others might know
better about that...

-jack

-----Original Message-----
From: Jorn van Eck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 18, 2000 3:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Characters counting


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: [EMAIL PROTECTED]
Website: http://www.iie.nl/~eck13



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to