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"));
}
?>
<?
$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"));
}
?>