Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > PHP Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-01-2005, 10:17 AM   #1 (permalink)
clifford
Junior Member
 
Join Date: Jun 2005
Location: Finland
Posts: 26
Default Limit disply of text field in table view

I have database with a table that has a text field. When diplayed though I only wish to disply the first 20 charachters from this text field.

Query = "select table1.rec_id as 'Record ID', table1.NOTES as 'NOTES' from table1";

How do I limit the displayed NOTES field to only the first 20 chars.

thanks
clifford is offline   Reply With Quote
Sponsored Links
Old 11-08-2005, 08:39 PM   #2 (permalink)
taylor
Junior Member
 
Join Date: Aug 2005
Posts: 28
Default

Hey ~clifford.. just trim the results
Code:
Query = "select table1.rec_id as 'Record ID', LEFT(table1.NOTES, 16) as 'NOTES' from table1";
taylor is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 09:24 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums