trim, cut, shorten text - also storing images in sql
Posted: Sun Dec 28, 2003 2:42 pm
Hi Guys,
Could someone please point me in the direction of a good SIMPLE example of how to store and pull images from MySQL?
Also what is the PHP function to trim text. What I would like to do is set a character length of lets say 10 and then put "..." on the end of the text. Of course the text is pulled from MySQL as well. I have checked the PHP manual and with "trim" it seems like you can only trim certain characters.
Thanks as always,
Could someone please point me in the direction of a good SIMPLE example of how to store and pull images from MySQL?
Also what is the PHP function to trim text. What I would like to do is set a character length of lets say 10 and then put "..." on the end of the text. Of course the text is pulled from MySQL as well. I have checked the PHP manual and with "trim" it seems like you can only trim certain characters.
Thanks as always,