Somehow I am stuck with my SQL code. I want to check 2 things in one statement but I guess my syntax is wrong, could you please help me?
Here is my code:
($statement = $db->prepare("SELECT t_date,t_free FROM t_termins WHERE (t_date Between ? AND ?) AND (t_free= ?) "));
$statement->bind_param("ssi", $datefrom, $dateto,0);
$statement->execute();