PHP Code:
$statar = $db->query_read("SELECT * FROM " . TABLE_PREFIX ." stats");
PHP Code:
$templater = vB_Template::create('vbmusic');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('statar', $statar);
print_output($templater->render());
I understand everything. For some reason, I only get the word Array to show up on my templates. This is what I use on my template.
PHP Code:
{vb:raw statar}
I'm guessing I have the array register proper. Is there anything else that I have to add to go with the query. I used the * because their is more than just one result to show from that particular table.