Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一个项目,我必须获取日期之间的数据加上用户名。only 的查询date between工作正常,但and操作员的方式错误,所以请建议我如何实现它以实现所需的输出。这是我的代码:
date between
and
$qry11=mysqli_query($con,"select * from entry where (create_date between '$first' and '$second') && cnor='$nme'");
所以请建议如何做到这一点....任何想法将不胜感激。
&&
应该替换为
AND
您似乎已经AND在您的查询中使用了
(create_date between '$first' and '$second')
使用如下查询
$qry11=mysqli_query($con,"select * from entry where (create_date between '$first' and '$second') and cnor='$nme'");