PHP ver gevorderde |
|
Ik heb dit :
$select2 = "SELECT * FROM bericht ORDER BY id ASC LIMIT ".($n * $AantalPerPagina+1).", $AantalPerPagina WHERE idgastenboek = ".$_GET[id]."";
$Aantal = mysql_num_rows(mysql_query("SELECT id FROM bericht WHERE idgastenboek = '".$_GET[id]."'"));
$select2 = "SELECT * FROM bericht ORDER BY id ASC LIMIT ".($n * $AantalPerPagina+1).", $AantalPerPagina WHERE idgastenboek = ".$_GET[id]."";
en krijg dit :
Citaat: 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 idgastenboek = 1' at line 1
|