Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

96 users online



Storing html/php in database

Storing html/php in database

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 2
xtended

xtended

Status: Offline!

Storing html/php in database

Ok.. say I store the HTML to a page in a database.. but I want to have a PHP script running on that page.. is there a way to do this with databases? I have tried but it just prints out the PHP code.

Thanks!

jadedchron

jadedchron

Neverside Newbie
Status: Offline!

That doesn't make any sense, atleast not to me..

You need a PHP supported host for your PHP to work

___________________

Nick
Pixel-Infinity

xtended

xtended

Status: Offline!

Ok.

You have a MySQL Database (It is a database that is used with PHP). I want to store the website HTML in the MySQL database (Like I said, is used with PHP). That way, you can grab the HTML from the MySQL database (It is a database that is used with PHP mostly). I want to add PHP to the HTML code that is in the MySQL database. The only thing is, that it will not do the functions of PHP that I have told it to do, it just prints out the coding.

I am trying my best to explain this..

PranK

PranK

A few details about myself
Status: Offline!

are you inserting it to the db as Binary?

try this - http://www.phpbuilder.com/columns/florian19991014.php3

Christian

___________________

My Karma ran over your Dogma.

www.skylinesaustralia.com

jadedchron

jadedchron

Neverside Newbie
Status: Offline!

Yes, I know what MySQL is. What I don't understand is why you would store PHP inside of your database - that just sounds like messed up programming logic.

___________________

Nick
Pixel-Infinity

angelessme

angelessme

Neversidian
Status: Offline!

For tutorials, if you want to store code, that may also be executable as a functional example.

Just "store it" and use eval() to run it.

___________________

angelessme, antagonising neverside members, staff and administration since 2001.

Nem

Nem

Status: Offline!

I think what he wants to do is make it easier to update his website, maybe online im guessing?

I have also wanted to be able to do this but never really understood how to or wether theres a good point to it, but it sounds interesting so please, anyone who knows about this, post away...

xtended

xtended

Status: Offline!

I want to store the websites html in the database.. but if you have PHP in your sites HTML Code (or just code).. it will not execute those PHP functions, instead it will just show the php code that you have typed in.

I think the link PranK will be help...

TheMickster

TheMickster

Neverside Newbie
Status: Offline!

I suspect you want to store the content of the html pages in the database ??
You dont store html code in a database well i dont see the point in this as a database is for data (content) :P

Do you mean that you want it to print the content from the database into a table of something similiar? I think you are slightly confused.

Can you show us the code you are using ??

___________________

Bytecon Web Solutions
Flyscripts - Remotely Hosted Scripts
Talk Ski - Skiing Discussion
ClickCreator - $1.85 for 1000 targetted visitors

b3njo

b3njo

Status: Offline!

i think he wants to store the html content in the database, let say he has a table:

Code:


<table>
<tr><td>bla..bla..</td></tr>
</table>

so in the database, it will store as the code, not 'bla..bla', is that right?

Page 1 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0075 seconds.