add fetchmode
This commit is contained in:
parent
219518ce83
commit
6d650065d1
|
@ -41,6 +41,7 @@ class member
|
||||||
else{
|
else{
|
||||||
$sql = "select username,password from users where username='$uname'";
|
$sql = "select username,password from users where username='$uname'";
|
||||||
$rs = $this->db->query($sql);
|
$rs = $this->db->query($sql);
|
||||||
|
$this->db->setFetchMode(Zend_Db::FETCH_ARRAY);
|
||||||
$row = $rs->fetch();
|
$row = $rs->fetch();
|
||||||
$scr = $this->makescr($row['username'],$row['password']);
|
$scr = $this->makescr($row['username'],$row['password']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue