hello to all. can anyone tell me is it possible to truncat 50 characters to 12 for inserting it mysql row. like i saw a website who put the story description/snapshot in the listing.
thanks
dreamcatcher
2:19 pm on Aug 7, 2006 (gmt 0)
Hi Shanee,
The substr [uk.php.net] function may be what you are looking for.
dc
Shanee
6:48 pm on Aug 7, 2006 (gmt 0)
hello... and thanks dreamcatcher
i want to insert the description of the story/pharagraph, the description will be short for example i have below words/characters === asdfghjkl ===
so how i can insert just asdfg to mysql row with the help of php funtion
thanks
coopster
3:45 am on Aug 8, 2006 (gmt 0)
Did you follow the link that dc left you there, Shanee? It should explain things fairly clearly. Give it your best shot and if you are still stuck, c'mon back and tell us what is not working.
Shanee
11:43 am on Aug 8, 2006 (gmt 0)
hmmmmm thanks to you mate i got how to use substr(), thanks for helping me