From: Arlo L. <ar...@ar...> - 2009-07-22 16:57:31
|
Hi Andy, > Here's the situation. I'm designing a database based page generation system > for my website. That is, HTML and possibly PHP code is stored in a MySQL > table as raw text. A query will pull the text out of the table and render > it as HTML and PHP. It renders the HTML, but it won't render the PHP Code > (it appears in my source code when I "view source" in my browser). > > I have tried the "eval()" command, but that doesn't seem to work. Any > thoughts? Thanks much, Does this work? eval("?".">".$content); I have a web templating system similar to what you described and that's how I do it there. Cheers, -Arlo _______________________________ Arlo Leach 773.769.6106 http://arlomedia.com |