Re: [PHP-DB] Cropped Text

2003-03-12 Thread Micah Stevens
substr(); On Wed, 2003-03-12 at 13:21, Dallas Freeman wrote: > I dunno what it is called so that is why I am asking, so that I can > search the web about it. > What do you call the method of cropping text back, so that there are a > limited number of characters shown, the rest is cut off. > > Th

Re: [PHP-DB] Cropped Text

2003-03-12 Thread Jeffrey_N_Dyke
if you're using mysql you can use LEFT(column_name, 10) this will return the first 10 chars of whatever is in column_name. you could also use SUBSTRING(col, position, length)... i'm sure most DB's support variations of the above. hth jeff

RE: [PHP-DB] Cropped Text

2003-03-12 Thread Hutchins, Richard
Truncate? > -Original Message- > From: Dallas Freeman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 4:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Cropped Text > > > I dunno what it is called so that is why I am asking, so that I can > search the web about it. > What d

RE: [PHP-DB] Cropped Text

2003-03-12 Thread Aaron Wolski
Strlen : -Original Message- From: Dallas Freeman [mailto:[EMAIL PROTECTED] Sent: March 12, 2003 4:22 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Cropped Text I dunno what it is called so that is why I am asking, so that I can search the web about it. What do you call the method of croppi