I use ActiveRecord for querying my databases. I implemented my own function to check if a row exists in the database already.
Basically it works when I pass just one parameter as “where”:
$query = $this->db->select($col)->from($tbl)->where($val)->get();
But when I pass an associative array as where-parameter, it returns “no row found”.
My array $var looks like this:
$var = array (
'passport' => $data['passport'],
'country' => $data['country']
I checked if the array passed to the function is filled and it is. Is this a bug in 1.6.3 or am I hving a mistake?
Thanks for your help,