Solved

recording html in a mysql database

Posted on 2011-02-15
2
951 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
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

740 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