load->model('commonsql_model'); $tableName="ledger"; $whereData=array('status'=>1,'type'=>$values);$order="ledger_id"; $seller=$CI->commonsql_model->selectTable($tableName, $whereData,'',$order); ?>