First, I believe the function mysql_result is incorrectly written. The second parameter of mysql_result is a row number, so...
Quote:
$template = mysql_result($query,"value");
should become something like
Quote:
$template = mysql_result($query,0,"value");
Secondly, why do you need to use an eval()? Can't you just do something like:
Quote:
echo mytemplate("tpl-a");
If all the suggestions above have been tried, have you tried doing an echo inside the function to check if the function runs in the first place? So, echoing out the value of $template within the function instead of returning the value.
Good luck!