PHP 如果傳值爲空則檢索全部的 傳值則檢索對應的值

if(is_numeric($data['he_status']))
        {
            $status = $data['he_status'];
            $where .= " AND o.he_status = ".$status;
}

如果he_status 爲空則where不存在  否則走where

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章