MySQL select a field's first X bytes
| From: | Micah Bushouse | Date: | Tue, 17 Dec 2002 02:22:15 +0000 |
| Subject: | MySQL select a field's first X bytes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128498@lists.php.net to get a copy of this message | ||
Is there a way in MySQL to select a fields first X bytes?
I have a field of type text. I would like to print the first 500 or so
bytes of its contents as a summary of the entire field, then having the user
click "read more..." or something of that sort for the whole document.
I read up on select in the MySQL manual and didn't see much, does anyone out
there know of such a feature? Should I just take the whole field into php
and do it that way?
thanks,
Micah Bushouse