SQL Error
Geplaatst: 07 jul 2006, 22:02
Soms als ik naar mijn admin panel ga, en ik wil de online users zien dan zegt ie:
Dit is niet altijd, volgens mij als er meerdere users online zijn krijg ik het wel te zien, en als ik alleen online ben dan werkt het goed.
???
Dit is een stuk index.php
waarin
Code: Selecteer alles
Could not obtain regd user/online information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE page_id = 58' at line 1
SELECT forum_name, forum_id FROM phpbb_forums
Line : 403
File : index.php
???
Dit is een stuk index.php
Code: Selecteer alles
//
// Okay, let's build the index
//
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];
//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
{
$template->assign_block_vars('catrow', array(
'CAT_ID' => $cat_id,
'CAT_DESC' => $category_rows[$i]['cat_title'],
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
);
line 403 is ...if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])