PHP codes from MySQL database?
Posted: Tue Nov 01, 2005 12:35 am
Can I store PHP scripts/coding in a row in a table in a MySQL database and have that run on a certain page?
i.e. a mysql row contains
a page, stuff.php, contains some sort of function (this is what i'm asking, i don't know what this function, if any, IS)
and the page would output
of course.
Would that be the eval() function? Or something else? Is it even possible?
i.e. a mysql row contains
Code: Select all
<?php
echo "Hi man! You rule!";
$he_sure_rules="Y";
?>Code: Select all
<?php
/* some sort of function here */
?>Code: Select all
Hi man! You rule!Would that be the eval() function? Or something else? Is it even possible?