change order asc
This commit is contained in:
parent
5130914e67
commit
6e539bff3d
|
@ -20,9 +20,9 @@ class Fund extends Zend_Controller_Plugin_Abstract
|
|||
{
|
||||
if(empty($uid))
|
||||
{
|
||||
$sql = "SELECT * FROM ".$this->tbl_fund." ORDER BY id DESC";
|
||||
$sql = "SELECT * FROM ".$this->tbl_fund." ORDER BY id";
|
||||
}else{
|
||||
$sql = "SELECT * FROM ".$this->tbl_fund." WHERE userid=$uid ORDER BY id DESC";
|
||||
$sql = "SELECT * FROM ".$this->tbl_fund." WHERE userid=$uid ORDER BY id";
|
||||
}
|
||||
$rs = $this->db->query($sql);
|
||||
$rows = $rs->fetchAll();
|
||||
|
|
Loading…
Reference in New Issue