mjedman1 Posted July 29, 2008 Share Posted July 29, 2008 Ok, I have a block of code stored in a mysql table. It is mainly html but lets say that the following line is in it <TITLE> $configarray["Title"] </TITLE> Now obviously the following code would not make the Title say Webpage. Any ideas of what I can do to the code so it does? $configarray["Title"] = "Webpage"; $queryxtracode = mysql_query("SELECT * FROM tehcodes Where id = 1") or die(mysql_error()); $dataxtracode = mysql_fetch_array($queryxtracode); echo dataxtracode["code"]; Link to comment https://forums.phpfreaks.com/topic/117232-solved-place-php-variables-in-mysql-table/ Share on other sites More sharing options...
ignace Posted July 29, 2008 Share Posted July 29, 2008 eval(): http://be.php.net/manual/en/function.eval.php Link to comment https://forums.phpfreaks.com/topic/117232-solved-place-php-variables-in-mysql-table/#findComment-603064 Share on other sites More sharing options...
mjedman1 Posted July 29, 2008 Author Share Posted July 29, 2008 <3 Link to comment https://forums.phpfreaks.com/topic/117232-solved-place-php-variables-in-mysql-table/#findComment-603080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.