使用JSON我从数据库返回。
SELECT COUNT(id) AS 'id'
FROM avail
WHERE start >='$dayOfEvent' AND start < DATE_ADD('$dayOfEvent', INTERVAL 1 DAY)
AND title = '$doctorName'
AND backgroundColor = 'red'
传入的是&#39; Curly&#39;为了医生的名字和&#39; 2015-11-30&#39;为了约会。
"Array([0] => 42S22 [1] => 1054 [2] => Unknown column 'Curly' in 'where clause')1"
问题是,该列不称为卷曲,它是&#39; title&#39;
我已经在mysql中运行了它,它运行得很好!