change order asc

This commit is contained in:
wlx 2013-04-22 17:20:51 +00:00
parent 5130914e67
commit 6e539bff3d
1 changed files with 2 additions and 2 deletions

View File

@ -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();