add single quote

This commit is contained in:
wlx 2014-01-07 12:37:27 +00:00
parent e553375dce
commit 55df6a1352
1 changed files with 1 additions and 1 deletions

View File

@ -1092,7 +1092,7 @@ class Admin_DownController extends Zend_Controller_Action
$objActSheet->setTitle('在线服务记录');
$sql="select o.username,o.unit,o.phone,o.address,o.postcode,o.project,date(o.ts_created) as date,o.email,o.project_id,o.project_type,o.project_title,m.filesize,m.title
from onlineapp o left join dataorder d on o.id=d.onlineappid left join metadata m on d.uuid=m.uuid
where o.ts_created>='".$ym." and o.ts_created<'".date('Y-m')."-1' and d.status=0 order by o. ts_created
where o.ts_created>='".$ym."' and o.ts_created<'".date('Y-m')."-1' and d.status=0 order by o. ts_created
";
$re = $this->db->query($sql);
$rows = $re->fetchAll();