Got myself the following error and I can't seem to figure out why:
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 's-Gravenmoer'' at line 1
This is the SQL syntax:
$plaats = $row['plaats'];
$query10 = "SELECT * FROM gebieden WHERE plaats = '$plaats'";
For those interested, the variable has this content: 's-Gravenmoer
Why is it giving me an error? Thanks!