Posted by chris.huh on 01/22/07 11:44
J.O. Aho wrote:
> chris.huh wrote:
> > I have looked about and found plenty of information about getting the
> > first 100 characters from a mysql field, which is what i want. But, is
> > there a way to first remove any html that may be in the field first, so
> > that only the actual words are included.
>
> I guess it's easies to fetch the whole field to php and use ereg* functions to
> strip away the HTML tags and then take the 100 first characters.
>
>
> --
>
> //Aho
So with ereg* you specify what things it should search for in a
variable and then it removes them leaving just what is left in another
variable. Then i apply the 'select first 100 characters; function to
that. Is that right?
Navigation:
[Reply to this message]
|