Quote:
Originally Posted by Paul M
Since we don't know what it's supposed to do - or what's in the ding_bits template - it's hard to say.
Try this (based on a guess of what I think you are trying to do).
PHP Code:
unset ($dingx); $dingr = $vbulletin->db->query_read("SELECT * FROM ding"); while ($ding = $vbulletin->db->fetch_array($dingr)) { eval('$dingx .= "' . fetch_template('ding_bits') . '";'); }
// Finish up. eval('print_output("' . fetch_template('ding') . '");');
|
This should work. Only use query_first if you only need the first row of the table...