I'm pulling HTML from a DB and would like it to respond to variables from the outside...
Say I have this in my MySQL field:
Hello, <?=$name?>
and this is my code
$name = "Jack";
$rq = $db->query("SELECT * from greetings WHERE id = '$gid'");
while ($r = $db->fetch_array($rq))
{
echo $r['greeting'];
}
How do I get it to work?