/forums/index.php |
---|
15,7 → 15,7 |
$ids = $page->findIDs('ForumCategories', 'WHERE ParentID = ' . $parentID . ' ORDER BY Title ASC'); |
for ($i = 0; $i < count($ids); $i++) |
{ |
$forumCategory = $page->getForumCategory($ids[$id]); |
$forumCategory = $page->getForumCategory($ids[$i]); |
write('<h4><a href="index.php?parentID=' . $forumCategory->parentID . '">' . $forumCategory->title . '</a></h4>'); |
write('<p>' . $forumCategory->description . '</p>'); |
} |
/_taios.php |
---|
284,7 → 284,7 |
$result = mysql_query($query); |
if (!$result) |
{ |
$this->drawError('MySQL Error: ' . mysql_error()); |
$this->drawError('Query Failed: ' . $query . "\n" . 'MySQL Error: ' . mysql_error()); |
} |
return $result; |
399,7 → 399,7 |
function getForumCategory($id) |
{ |
$result = $this->query('SELECT * FROM ForumCategoriess WHERE ID = ' . $id); |
$result = $this->query('SELECT * FROM ForumCategories WHERE ID = ' . $id); |
while ($row = mysql_fetch_array($result)) |
{ |
$f = new ForumCategory; |