RE: [PHP] selecting words

2001-08-08 Thread Jon Farmer
There was a post earlier very similar to this. If you have a database, you could use SELECT LEFT(mycolumn, 100) FROM mytable WHERE ... Without a db, you can use the PHP substring function: substr() Except that would return the first 100 characters and not the first 100 words as requested. To

RE: [PHP] selecting words

2001-08-08 Thread Robert V. Zwink
. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Robert V. Zwink DAID Development LLC http://www.zwink.net/daid.php -Original Message- From: Jon Farmer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 4:19 AM To: Alfredeen, Johan; 'Jamie Saunders' Cc: [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] selecting words

2001-08-07 Thread Alfredeen, Johan
Jamie, There was a post earlier very similar to this. If you have a database, you could use SELECT LEFT(mycolumn, 100) FROM mytable WHERE ... Without a db, you can use the PHP substring function: substr() Hope this helps, Johan Alfredeen www.pongworld.com -Original Message- From: