theblacksheep Posted June 29, 2009 Share Posted June 29, 2009 Hello, I am converting a clients website over so then it becomes database driven, content wise anyway. I get the data from the database but when it tries to run the php code stored in the db field "content" which is calling information from another part of the db using a standard query, it only displays random characters. I believe it may have something to do with mysql sending the data as a string. Is there a better data type if this is the case? Link to comment https://forums.phpfreaks.com/topic/164036-displayin-stored-in-mysql/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 29, 2009 Share Posted June 29, 2009 A database driven web site means just the content is stored in a database, not the php code that displays that content. For example, on this site, the content of the posts are stored in a database. The php code that displays those posts is not stored in a database. And if you have content that has replaceable parameters in it, you use a template engine (from a simple str_ireplace() statement to a full blown 3rd party one like smarty) to manage the replacement of the parameters with the actual values when it is displayed. Link to comment https://forums.phpfreaks.com/topic/164036-displayin-stored-in-mysql/#findComment-865343 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.