Jump to content

Adding html code into mysql database


shalli

Recommended Posts

Hi there

 

Just wanted to know what everyone here would recommend to a newbie in php about adding php code to mysql database and then retreiving it

 

I would like to create a is a php template site that allows user to choose the template they like and once the user selects the template it takes the user to a page that shows template code. The page use php variables to display the code from the database.

 

as an example it like dreamweaver which allow you to choose from a selection of templates when creating a website

 

Hope this make sense

 

thanks for you time

 

shalli

Link to comment
Share on other sites

You can just store the HTML code in a TEXT field in your mysql database. When you  echo the HTML code make sure you echo it in a textarea.

 

 

In my opinion it would be alot easier, to make a system that allows users to upload a zip file and a screenshot of the template.

Link to comment
Share on other sites

You can just store the HTML code in a TEXT field in your mysql database. When you  echo the HTML code make sure you echo it in a textarea.

 

 

In my opinion it would be alot easier, to make a system that allows users to upload a zip file and a screenshot of the template.

 

Yeah the ZIP file and screen shot would be pretty good idea. If not, yeah, store it as a text. And just pull the data when necessary.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.