Click to See Complete Forum and Search --> : mysql and text


daed17
10-27-2003, 06:00 PM
what is the best way using mysql to where I can limit the text displayed to so many characters?

Example:

mysql table has (1234,12345,123,123456)

and I want the output to be like (123,123,123,123)

can mysql do this?

PunkSktBrdr01
10-27-2003, 06:34 PM
I don't think you can do this with MySQL, but it is easy with PHP. Check out the substr() (http://us2.php.net/manual/en/function.substr.php) function.