SELECT first x characters of data in field

Status
Not open for further replies.

jacob

New member
Jun 30, 2006
92
0
0
Vancouver
sipofwater.com
Is there a way to select say the first 255 characters of the field data within the database? I've been working on a blogging script and want to only display a certain amount of data for each post before the 'read more' link. tia!
 


Use the substr function after you've extracted the data from the db. Look it up on php.net.
 
Status
Not open for further replies.