PDA

View Full Version : Hack Help


N!ck
03-11-2002, 08:35 PM
I need help with this. I get a "parse error in eval()'d code" error when I run it. Does anyone see the problem? :)


<?
$templatesused = "latest,latestbit";
require("./global.php");
$threadsql = $DB_site->query("SELECT * FROM thread ORDER BY lastpost DESC LIMIT 30");
while ($thread = $DB_site->fetch_array($threadsql)) {
eval("\$latest = \"".gettemplate("latestbit")."\";");
eval(gettemplate("latest"));
}
?>

TECK
03-11-2002, 08:37 PM
where do you place this bit? give me more details. also, is this file placed in the /forum folder?
your code should look like:eval("dooutput(\"".gettemplate('latest')."\");");

N!ck
03-11-2002, 09:03 PM
that eval() part was the problem, as i expected ;) thanks nakkid

TECK
03-11-2002, 09:06 PM
so you got it working... congrats :)