Lionel
08-29-2005, 08:40 PM
I've got this in globals.php
$jukecount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "jukebox WHERE active = 1");
I created a template module where I placed $jukecount[count] in it and also globalize jukecount in settings .
I get the warning invalid argument error (like I do for all templates) and the count is not displaying.
$jukecount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "jukebox WHERE active = 1");
I created a template module where I placed $jukecount[count] in it and also globalize jukecount in settings .
I get the warning invalid argument error (like I do for all templates) and the count is not displaying.