Re: REGEX? SQL? Getting only so much from a long field
| From: | Alain Samoun | Date: | Mon, 16 Oct 2000 21:31:07 +0000 |
| Subject: | Re: REGEX? SQL? Getting only so much from a long field | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3277@lists.php.net to get a copy of this message | ||
Hi John:
What about redesigning your DB adding a 'short_story' field that you can
populate from your current long_story field with the strtok("<BR>") command?
Alain
On Mon, Oct 16, 2000 at 03:38:21PM -0400, Asendorf, John wrote:
> Hello all,
>
> I've got some long stories in a news database. I want to make a little
> "preview" type function that only spits out the first paragraph and then
> says "read the rest"... what I can't figure out is how to have it just
> read the field up to the first <br> tag. (all of the stories have these
> added when the story is put into the database. Any suggestions?
>
> John
>
> ---------------------
> John Asendorf - jasendorf@lcounty.com
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net