Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

recording html in a mysql database

Posted on 2011-02-15
2
Medium Priority
?
960 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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
In this article, we’ll look at how to deploy ProxySQL.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…
Suggested Courses

916 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