I have a series of articles in files that are included in dynamic pages. I would like delete all the files and put the content in a database.
However, some of the articles include PHP code. I was surprised to learn on a recent thread that you can put PHP code in a MySQL database table. However, I forgot to ask how to do it. Can someone show me how you would modify the following text (which includes an echo value and an include) so that it can be stored in a database table?
<p>Mammals and reptiles evolved from a common ancestor.</p>
<h3><a name="Internal" id="Internal"></a><?php echo $EvoHeader; ?></h3>
<?php require_once($BaseINC."/AContent/Child/Life/Features/Classification/Order/Mammals.php"); ?>
<p>Evolution continues today.</p>