al3bed
08-25-2009, 01:52 PM
hi,
I have a problem but I don't know where exactly?
look at the code please
$ain_adsense_info = $vbulletin->db->query_read("
SELECT id, type, content, channel, slot, width, height
FROM " . TABLE_PREFIX . "ainadsense AS ainadsense
ORDER BY id ASC
");
while ($ainadsense = $db->fetch_array($ain_adsense_info))
{
exec_switch_bg();
eval('$ain_adsense_bit .= "' . $vbulletin->templatecache['ain_adsense_manager_bit'] . '";');
}
the template 'ain_adsense_manager_bit' will take data and show it in home template
but my problem is that $ain_adsense_bit not working inside any template!
and the table is not empty
I have a problem but I don't know where exactly?
look at the code please
$ain_adsense_info = $vbulletin->db->query_read("
SELECT id, type, content, channel, slot, width, height
FROM " . TABLE_PREFIX . "ainadsense AS ainadsense
ORDER BY id ASC
");
while ($ainadsense = $db->fetch_array($ain_adsense_info))
{
exec_switch_bg();
eval('$ain_adsense_bit .= "' . $vbulletin->templatecache['ain_adsense_manager_bit'] . '";');
}
the template 'ain_adsense_manager_bit' will take data and show it in home template
but my problem is that $ain_adsense_bit not working inside any template!
and the table is not empty