
ich bekomm jetzt diesen Error, wenn ich als Gast unterwegs bin:
Code: Alles auswählen
Couldn't obtain category list.
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'c.cat_title<>'global_announcement' GROUP BY c.cat_id, c.cat_title, c.cat_order' at line 3
SELECT c.cat_id, c.cat_title, c.cat_order FROM test_categories c, test_forums f WHERE f.cat_id = c.cat_idAND c.cat_title<>'global_announcement' GROUP BY c.cat_id, c.cat_title, c.cat_order ORDER BY c.cat_order
Line : 106
File : /is/htdocs/42846/www.vahid.de/test/includes/functions.php
hat wohl damit zutun, dass ich das so eingebaut hab:
Code: Alles auswählen
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
WHERE f.cat_id = c.cat_id".(($userdata['user_level'] == ADMIN)? "" : "AND c.cat_title<>'global_announcement'" )."