PDA

View Full Version : template module


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.

Brian
08-30-2005, 12:49 PM
What exactly did you put in the template?

Our Sponsors
 

Lionel
08-30-2005, 12:51 PM
$jukecount[count] but it's ok. I created a php for the whole thing.