Problem is :
$type
= my r_areal
variable
$sqlc = "SELECT * FROM reservation where r_areal IN ('".$type."') and '".$cid."' between r_start and r_ende
or where r_areal IN ('".$type."') '".$cod."' between r_start and r_ende
or where r_areal IN ('".$type."') '".$cid."'<= r_start AND '".$cod."' >= r_ende
";
So this is my php query for sql. It works, but it shows me every sql rows for every $type
in my db. But it should instead only show all rows for f.e. the parameter B. I know, that one problem is that the where r_areal IN ('".$type."')
is only accepted once. But if I remove the second and third one, it shows me all rows for all $type
.
Can anybody help me?