fix error

This commit is contained in:
wlx 2014-06-11 14:17:11 +00:00
parent 417e587dbc
commit 5791184f19
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class DataController extends Zend_Controller_Action
if (empty($page)) $page=1; if (empty($page)) $page=1;
$limit=10; $limit=10;
$offset=$limit*($page-1); $offset=$limit*($page-1);
$state=$this->db->query('select count(*) from $this->submd'); $state=$this->db->query("select count(*) from $this->submd");
$row=$state->fetchAll(); $row=$state->fetchAll();
$sum=$row[0]['count']; $sum=$row[0]['count'];
$select=$this->db->select(); $select=$this->db->select();