hi, i have a question for the php gurus. have the following simple function:
function get_by_ids($ids){
$this->db->where_in('id', $ids);
$q = $this->db->get($this->table_name);
return $q->result();
}
If i accidentally pass NULL as a parameter, it selects my whole DB. how can i make this error proof? do i check for NULL? do i check for numeric value? what's best practice?