wolfe
12-28-2007, 12:11 PM
i cant get this array to work
$array = "59,63,64,69,72";
$threadarray = $vbulletin->db->query_read("
SELECT thread.*, icon.title AS icontitle, icon.iconpath
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = thread.iconid)
WHERE
thread.visible = 1 AND thread.forumid IN ('" . implode(",", $array) . "')
ORDER BY dateline DESC
LIMIT 15");
it returns nothing except this error Warning: implode() [function.implode]: Invalid arguments passed
$array = "59,63,64,69,72";
$threadarray = $vbulletin->db->query_read("
SELECT thread.*, icon.title AS icontitle, icon.iconpath
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = thread.iconid)
WHERE
thread.visible = 1 AND thread.forumid IN ('" . implode(",", $array) . "')
ORDER BY dateline DESC
LIMIT 15");
it returns nothing except this error Warning: implode() [function.implode]: Invalid arguments passed