Ik weet de fout wel maar ik zie de oplossing niet.
Foutmelding:
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 AND UCat = 1 ORDER BY nDate DESC LIMIT 0,5 at line 1
Code:
Foutmelding:
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 AND UCat = 1 ORDER BY nDate DESC LIMIT 0,5 at line 1
Code:
$sQuery = mysql_query("SELECT * FROM member_news " . (isset($_SESSION[uId]) ? (is_auth(2, $_SESSION[uId]) == TRUE ? : WHERE nVisible = 1) : ). " AND UCat = 1 ORDER BY nDate DESC LIMIT " . $start . "," . $per_pagina) or die(mysql_error());