Ok, I query a mysql database for a template, then I query the database for some custom html tags, it looks like this:
# loop and insert tags
while($line = mysql_fetch_array($myrow)){
$template = str_replace($line[1], $line[2], $template);
}
$line[2] is the second of the html tag, and it has a variable it in (for this example, $page_title), but when I echo $template, all I get is $page_title, how do I make it so it actually uses the variable $page_title?
Thanks!