如何显示thinkphp执行的语句
控制区器是这样写的
function checkLogin(){<br /> <br /> $condition['employeeno'] = $_REQUEST['employeeno'];<br /> $condition['password'] = $_REQUEST['password'];<br /> <br /> $model = M("Employeeinfo");<br /> $results = $model->where($condition)->select(); <br /> sql($model);<br /> <br /> if($results){<br /> if(trim($results[0]['Password'])==$condition['password']){<br /> echo "{success:true,msg:'OK'}";<br /> Session::set('employeeno','employeeno');<br /> Session::set('userinfo',$results[0]);<br /> return;<br /> }<br /> }<br /> echo "{success:true,msg:'登录帐号不存在互或密码错误!'}";<br /> }