From 6d650065d1bd4e4dfe4f87be08f4768bc46e600c Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 21 Mar 2012 10:07:32 +0000 Subject: [PATCH] add fetchmode --- application/models/member.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/member.php b/application/models/member.php index 4bf9e559..9cf9fab3 100755 --- a/application/models/member.php +++ b/application/models/member.php @@ -41,6 +41,7 @@ class member else{ $sql = "select username,password from users where username='$uname'"; $rs = $this->db->query($sql); + $this->db->setFetchMode(Zend_Db::FETCH_ARRAY); $row = $rs->fetch(); $scr = $this->makescr($row['username'],$row['password']);