Jump to content

[SOLVED] place php variables in mysql table


mjedman1

Recommended Posts

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"];

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.