I'm working on a hack, and I am using code with the below format (in my main vB directory)...however, the query only produces one row, even though running it manually produces more than that. It seems as if it's not running through the loop more than once...any idea on what might be wrong with it? Thanks in advance.
PHP Code:
<?php
require("./global.php");
$forumlist = $DB_site->query("SELECT * FROM forum WHERE displayorder != '0' AND active = '1' ORDER BY parentid, displayorder");
while ($forum = $DB_site->fetch_array($forumlist)) {
// do stuff
}
$DB_site->free_result($forumlist);
unset($forum);
Could it be that those variables ($forumlist, $forum) are conflicting with some others in use in the global.php file?