Ok, I've been trying to figure this out for the better part of a day. I've plowed over the threads I could find on the eval() function for a good hour, but I'm just not getting it.
As I understand it, once I put PHP code into a MySQL table, it comes out as a string, NOT code. Right?
So the eval function sort of "forces" the php code to be parsed?
So in my database table I have a bunch of html like this:
<p align="center">My Database Tables</p>
blah blah
<?php
require ("menu.php");
?>
<br />
<p align="center">More HTML script</p>
What this does is completely ignores the php code (it's not visible from the browser, but does show up when you View Source.)
So, do I need to eval the entire code, or just the bit that calls the require function?
The only thing I've managed to produce so far is a bunch of semicolons, quotes, and close brackets... :mad:
Thanks to any who take me by the hand on this one. I'm yanking my hair out! 😉