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!
Login |
Storing html/php in databaseStoring html/php in databaseCurrently viewing this thread: 1 (0 members and 1 guests) xtendedStatus: 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! That doesn't make any sense, atleast not to me.. You need a PHP supported host for your PHP to work ___________________ Nick xtendedStatus: 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.. 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 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 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. NemStatus: 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... xtendedStatus: 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... I suspect you want to store the content of the html pages in the database ?? 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 b3njoStatus: Offline!
i think he wants to store the html content in the database, let say he has a table:
so in the database, it will store as the code, not 'bla..bla', is that right? |
Copyright ©1999-2009 Neverside. All rights reserved.
Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach
NeverAPI generated this page in 0.0079 seconds.