Parker Clack
05-02-2006, 03:59 PM
When I insert
$customrowbanner = $db->query_read("SELECT id,banner_text FROM " . TABLE_PREFIX . "banner WHERE groupid=$foruminfo[forumid] ORDER RAND()");
$id=$customrowbanner['id'];
$text=$customrowbanner['banner_text'];
eval('$custombanner = "' . fetch_template('custombanner') . '";');
} else {
$custombanner = "";
}
in the forumdisplay_start hook I get
Parse error: parse error, unexpected '}'
Any ideas on how to write this to avoid this error message?
Thanks,
Parker
$customrowbanner = $db->query_read("SELECT id,banner_text FROM " . TABLE_PREFIX . "banner WHERE groupid=$foruminfo[forumid] ORDER RAND()");
$id=$customrowbanner['id'];
$text=$customrowbanner['banner_text'];
eval('$custombanner = "' . fetch_template('custombanner') . '";');
} else {
$custombanner = "";
}
in the forumdisplay_start hook I get
Parse error: parse error, unexpected '}'
Any ideas on how to write this to avoid this error message?
Thanks,
Parker