Insert PHP into page ?
Posted: Tue Feb 03, 2009 11:47 am
I have got my database driven web site I m using
to insert the content, into the page.
Now if I wanted to add a php command into the page (the part thats stored on the database) im not sure what to do.
can someone help me out here?
Thanks !
Code: Select all
$query = "SELECT * FROM $sTableName WHERE ID=$inPageID LIMIT 1";
$_CONTENT = mysql_fetch_array(mysql_query($query));
<?= $_CONTENT['PAGE_CONTENT'] ?>
Now if I wanted to add a php command into the page (the part thats stored on the database) im not sure what to do.
can someone help me out here?
Thanks !