How to make output display as compiled PHP
Posted on 2014-10-18
I have queried my database and output the field named "code_output". It is my intention for this field to hold html and php. When it displays, the html compiles and displays correctly, but the php does not compile. It literally shows the php code.
In other words, it will output, <table border="1"><tr><td>test</td></tr></table> AS AN ACTUAL TABLE
But when I use, <?php echo "test"; ?>, It doesn't compile, It LITERALLY DISPLAYS <?php echo "test"; ?>
How can I display the query and output as compiled php?
Tis is the simple line of code: