From 5791184f1964560354c25a2e24b75c4dcd384cea Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 11 Jun 2014 14:17:11 +0000 Subject: [PATCH] fix error --- application/default/controllers/DataController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 0eb2e133..db6809b7 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -112,7 +112,7 @@ class DataController extends Zend_Controller_Action if (empty($page)) $page=1; $limit=10; $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(); $sum=$row[0]['count']; $select=$this->db->select();