Quote:
Originally Posted by Live Wire
Acually you made a type-o Marco.
PHP Code:
while ($pmcount = $db->fetch_array($pmcounts)) { $messagecounters["$pmcount[folderid]"] = intval($pmcount['total']); } $links = array(); foreach ($messagecountersAS $key => $value)
Should be:
PHP Code:
while ($pmcount = $db->fetch_array($pmcounts)) { $messagecounters["$pmcount[folderid]"] = intval($pmcount['total']); } $links = array(); foreach ($messagecounters AS $key => $value)
You forgot the space before AS 
|
Database error in vBulletin 3.5.0 Beta 4:
Invalid SQL:
Code:
SELECT pm.*, pmtext.*
, icon.title AS icontitle, icon.iconpath
FROM pm AS pm
LEFT JOIN pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
LEFT JOIN icon AS icon ON(icon.iconid = pmtext.iconid)
WHERE pm.userid=1 AND pm.folderid=
ORDER BY pmtext.dateline DESC;
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY pmtext.dateline DESC' at line 7
Error Number : 1064
Appears to be:
PHP Code:
if (empty($_REQUEST['pmid']))
{
$vbulletin->input->clean_array_gpc($_REQUEST, array('folderid' => INT));
$pms = $db->query_read("
SELECT pm.*, pmtext.*
" . iif($vbulletin->options['privallowicons'], ", icon.title AS icontitle, icon.iconpath") . "
FROM " . TABLE_PREFIX . "pm AS pm
LEFT JOIN " . TABLE_PREFIX . "pmtext AS pmtext ON(pmtext.pmtextid = pm.pmtextid)
" . iif($vbulletin->options['privallowicons'], "LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = pmtext.iconid)") . "
WHERE pm.userid=$userid AND pm.folderid=$folderid
ORDER BY pmtext.dateline DESC
");
Okay, looking at that SQL query....ARGH :| No idea what's wrong :|