RE: [PHP] selecting words

2001-08-08 Thread Robert V. Zwink
2001 4:19 AM To: Alfredeen, Johan; 'Jamie Saunders' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] selecting words >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

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.

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: J