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"]; Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.