S
Shackles
Guest
Kann mir jemand helfen?
$db->query_first("UPDATE bb".$n."_threads SET accessgranted = '$access' WHERE threadid = '".intval($threadid)."'");
$db->query("UPDATE bb".$n."_threads SET accessgranted = '$access' WHERE threadid = '".intval($threadid)."'");
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /.../acp/lib/class_db_mysql.php on line 100
$db->query_first("UPDATE bb".$n."_threads SET accessgranted = '$access' WHERE threadid = '".intval($threadid)."'");
$db->query("UPDATE bb".$n."_threads SET accessgranted = '$access' WHERE threadid = '".intval($threadid)."'");
global $db, $n, $thread, $boardid, $tpl, $lang, $threadid, $wbbuserdata, $REMOTE_ADDR;
$result = $db->query_first("SELECT threadid FROM bb".$n."_threads WHERE visible = 1 AND lastposttime>'$thread[lastposttime]' AND closed <> 3 AND boardid = '$boardid' ORDER BY lastposttime ASC", 1);
if (!$result['threadid']) error($lang->get("LANG_THREAD_ERROR_NONEXTNEWEST"));
$threadid = $result['threadid'];
$this->threadid = $threadid;
header("Location: thread.php?threadid=".$threadid.$SID_ARG_2ND_UN);
exit;
global $db, $n, $thread, $boardid, $tpl, $lang, $threadid, $wbbuserdata, $REMOTE_ADDR;
$result = $db->query_first("SELECT threadid FROM bb".$n."_threads WHERE visible = 1 AND lastposttime<'$thread[lastposttime]' AND closed <> 3 AND boardid = '$boardid' ORDER BY lastposttime DESC", 1);
if (!$result['threadid']) error($lang->get("LANG_THREAD_ERROR_NONEXTOLDEST"));
$threadid = $result['threadid'];
$this->threadid = $threadid;
header("Location: thread.php?threadid=".$threadid.$SID_ARG_2ND_UN);
exit;