[PHP] limiting text output

2001-07-19 Thread chris schneck
To anyone else who had the same problem, I thought i'd share the solution that was passed on to me. It was suggested that counting the # of characters in a string would work, and it does, but a better way to do it as not to cut yourself off in mid sentence is to count the # of actual words. --

[PHP] limiting text output

2001-07-18 Thread chris schneck
Hey all, was curious if anyone has had experience with limiting the amount of text pulled from a database and placing a link and the end of the excessive text line. ie. the description of a product could be 800 characters long, how can it be shortened to 50 -100 characters with a link to read