解决接收多个数据的错误

This commit is contained in:
wlx 2013-04-09 01:06:12 +00:00
parent 93e4f1859b
commit b706082d29
1 changed files with 2 additions and 2 deletions

View File

@ -755,9 +755,9 @@ class Admin_ReviewController extends Zend_Controller_Action
//update search document
$search=new Search();
//create search view in xunsearch
$sql="select * from xunsearch where uuid in (select uuid from mdstatus where id in (?))";
$sql="select * from xunsearch where uuid in (select uuid from mdstatus where id in (".$ids."))";
$sth = $this->db->prepare($sql);
$sth->execute(array($ids));
$sth->execute();
while ($data = $sth->fetch())
{
$search->update($data);