Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing limmited numbes of characters

Status
Not open for further replies.

inusrat

Programmer
Feb 28, 2004
308
CA
I have a field type product_description of type longtext in my database (MYSQL) which suppose has pararagrapg which is 300 characters long.

NoW using the select statment I retrive the value of product_description. Now when I write that value I want to write down only first 100 charaters. How can I do that . You must have seen something like that

This is a NEC cell phone, it uses 2 high voltage batteries. It comes with phone case and .... more

and when you click on more you get to new page with the full text.


Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top