如何显示thinkphp执行的语句 开启debug,检查sql语句,复制sql语句在数据库中执行,看看有没有结果 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $model = M("Employeeinfo");$results = $model->where($condition)->select();echo $results->getlastSql(); 加上 $condition['_logic'] = 'AND'; $model = M("Employeeinfo");$results = $model->where($condition)->select(); $model->getlastSql();看看呢 你select方法里面加上个false就好了。他就不执行SQL语句了。转而把SQL语句打印出来。$model = M("Employeeinfo")->select(false); 寻找PHP开源考试系统 php 如何向一个定义好的excel模板中指定的sheet中写数据,或更新 php soap错误,求大牛帮忙 为毛这个GBK编码的网站可以使用汉字URL MYSQL.数据库上传问题 新手,请大虾指点 心情不爽,散分 php能在rails运行吗??有相应的技术文章吗??? php传递变量到html cms搭建php版本不兼容问题 php中没有显示出mssql的pdo google 源码管理 不开源
$results = $model->where($condition)->select();
echo $results->getlastSql();
$model = M("Employeeinfo");
$results = $model->where($condition)->select();
$model->getlastSql();看看呢
$model = M("Employeeinfo")->select(false);