processing mySQL results as PHP

admin

Administrator
Staff member
My site currently queries a SQL database which contains the page content - this makes it easy to edit the page with a web browser (which all my users can do) however, I want to include PHP scripts in the pages. If I include php code (e.g. <?php echo $variable; ?> in the field that is stored in the database it is output exactly like that to the browser. What I want to be able to do is to process the data output from the database query as if it was a php script. I realise the security implementations but only a few trusted individuals can edit the database.... I am not JUST echoing variables I need complex "IF" statements in there too and possibly database queries... I know I could make it echo variables using regular expressions... like eregi_replace.

Yours,
Ross McKillop
 
Back
Top