我正在研究 Zend 框架,在查询中遇到 1 个问题,我想从 tbl_user 获取用户 ID 并想在 where 子句中使用 And 检查记录
here is my query
$sql=$this->select()->from(users)->where('email = ? ', trim($email) , 'password = ?', md5(trim($password)) );
当我打印查询时,它会打印
select * from users where email = 'test@gmail.com';
我想打印查询
select * from users where email = 'test@gmail.com' AND password='123456';
提前致谢