duanhao7786 2015-11-04 19:04
浏览 36

SQL语句语法错误 - 使用AND两次

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(); 
  • 写回答

0条回答 默认 最新

    报告相同问题?