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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

building news page

Status
Not open for further replies.

hanlee

IS-IT--Management
Aug 19, 2007
3
hi there
i'm new to ASP vbscript and currently trying to use mysql

i have news table with news_title and news_body column
how to retrieve the news_ title and news_body where the news_title linking to complete news_body text, and news_body only displaying 100 words and "..."

thank u so much

 
You could use the VBScript Left() function to take only the leftmost 100 characters... but you might also be able to change your SQL query so that the database only gives 100 characters in the first place.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top