random1 Posted September 3, 2008 Share Posted September 3, 2008 Hi All, I currently have page content in a MySQL database and it is being displayed on the page as HTML. Is there a PHP function that I can use to tell PHP to handle it as PHP? e.g. echo('example'); <---- stored in database field prints out: echo('example'); instead of: example Link to comment https://forums.phpfreaks.com/topic/122493-handling-db-data-as-php/ Share on other sites More sharing options...
cyrixware Posted September 3, 2008 Share Posted September 3, 2008 Yes. Create a query to output whats inside the dbase. Link to comment https://forums.phpfreaks.com/topic/122493-handling-db-data-as-php/#findComment-632495 Share on other sites More sharing options...
trq Posted September 3, 2008 Share Posted September 3, 2008 You could try using () but to be honest, it is usually a pretty poor design choice to store php within a database. Link to comment https://forums.phpfreaks.com/topic/122493-handling-db-data-as-php/#findComment-632496 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.