Solved

recording html in a mysql database

Posted on 2011-02-15
2
952 Views
Last Modified: 2012-08-14
Hi folks I need to record into my database parts of several html files so that the final html file will be constructed from queries of the database.

Is this possible? How would I go about it?

My idea is to have a field for the head part, another for the body part and other for the footer...

I tried to make it work creating fields as blob but it didn't work so I scraped it all and decided to start from the beginning.

Any help and code will be appreciated.

Cheers!
0
Comment
Question by:doRodrigo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
asadhaider earned 500 total points
ID: 34902492
http://php.about.com/od/phpwithmysql/qt/php_in_mysql.htm

This is a simple tutorial exactly what you are looking for.

You could add an id column and give each page ID's, the relevent title/body content for each page would then be pulled from the database.
0
 

Author Closing Comment

by:doRodrigo
ID: 34902608
Thanks, cheers mate!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Form not executing correctly 1 28
Load string Array from file 23 42
How can I use javascript variable in mysql query 21 45
syntax error, unexpected end of file 4 17
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question