I have an insert query in a function (I have a good reason) but the text assigned to $eval_code doesn't get inserted
function db_install()
{
$eval_code = eval("\$test = \"".gettemplate("test")."\";");
$query = mysql_query("INSERT INTO hooks (hook_name, phpcode) VALUES ('index_start', ' "$eval_code" ')")or die(mysql_error());
$query = mysql_query("INSERT INTO templates (name, groupname, content) VALUES ('test', 'test', 'Testing')")or die(mysql_error());
echo "Installed<br />.";
return $query;
}