Reply
Take html data from mysql and post it as non html?
Old 03-17-2006, 01:51 AM Take html data from mysql and post it as non html?
capetek's Avatar
Extreme Talker

Posts: 229
Location: Massachusetts
the page in question:
http://energy.dlgresults.com/pages/6...s-systems.html

I've recently been doing development on this website, It used a CMS system that I am in the process of developing but i actually ran across one problem. I want to auto generate the <meta> tags, description and title. Currently in the admin panel you can only create the page name, the link name and content(which is tinmce wysiwyg editor) once you add a page you can choose if you want to add it to the menu. What i would like to know is, if theres a way to pull content from what was written in the page(wyswyg) section to build the description.

For example, is there a php command i dont know about that will pull the main content from the database and strip the html tags? some function i dont know about? Right now I have to manually put in the title and description tags through the page adding scheme(because i dont want the same title for every page) but my contractor believes the client will not want to do this for every page.

Any input would be appreciated, I thank you for your help!

ps:hers a sshot of the admin panel
__________________
Anthony LeBoeuf
Cape-Tek IT Solutions
www.cape-tek.com
Great hosting at affordable pricing!
capetek is offline
Reply With Quote
View Public Profile Visit capetek's homepage!
 
When You Register, These Ads Go Away!
     
Old 03-17-2006, 02:55 AM Re: Take html data from mysql and post it as non html?
chrishirst's Avatar
Super Moderator

Posts: 12,819
Location: Blackpool. UK
that'll be strip_tags then
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-17-2006, 09:39 AM Re: Take html data from mysql and post it as non html?
capetek's Avatar
Extreme Talker

Posts: 229
Location: Massachusetts
hey thanks bro, that'll work!
__________________
Anthony LeBoeuf
Cape-Tek IT Solutions
www.cape-tek.com
Great hosting at affordable pricing!
capetek is offline
Reply With Quote
View Public Profile Visit capetek's homepage!
 
Reply     « Reply to Take html data from mysql and post it as non html?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14169 seconds with 13 queries