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))
|
if(empty($uid))
|
||||||
{
|
{
|
||||||
$sql = "SELECT * FROM ".$this->tbl_fund." ORDER BY id DESC";
|
$sql = "SELECT * FROM ".$this->tbl_fund." ORDER BY id";
|
||||||
}else{
|
}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);
|
$rs = $this->db->query($sql);
|
||||||
$rows = $rs->fetchAll();
|
$rows = $rs->fetchAll();
|
||||||
|
|
Loading…
Reference in New Issue