Forum Moderators: coopster

Message Too Old, No Replies

shortened output

how to shorten text field to fit

         

mooger35

1:47 am on Aug 4, 2005 (gmt 0)

10+ Year Member



I know this is probably a really simple answer but hey, I'm new to this.

I want to create a comments section and I want to display a little bit of the posters comments on 1 line (regardless of text length). How do I shorten the query output so it has "..." at the end when it runs out of space?

jatar_k

2:03 am on Aug 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



substr() [php.net]

mooger35

2:07 am on Aug 4, 2005 (gmt 0)

10+ Year Member



Thanks!