2014-01-21 110 views

回答

1

如果你的「orders_m」模型是從MY_Model延長(它可能是),你可以使用所有標準的笨活動記錄功能。

if($this->input->post('f_OrderNumber')) 
{ 
    $this->orders_m->like('OrderNumber', $this->input->post('f_OrderNumber')); 
} 

$orders = $this->orders_m->get_all(); // if you want everything OR 
$orders = $this->orders_m->get_many_by('field', 'value'); // if you have other parameters 
相關問題