Reply to Extract first 100 characters from Mysql field

Your name:

Reply:


Posted by chris.huh on 01/22/07 11:11

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 have a news site and at the moment there is a separate summary field,
which really would be nice to get rid of, but since the main field has
html put into it (i was KTML 4 as the RTE) when i try and select the
first 100 characters it often ends up being very short, with unclosed
html tags. So what would be great is a way to strip it of html then
select the first 100 characters.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация