PHP:
$id = 2;
$query = "SELECT * FROM rotation WHERE id='$id'";
$res = mysql_query($query) or die( mysql_error() );
=>
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 id='2'' at line 1
ik zie de fout niet!