Isaac - 2020-05-13 06:15:00 -
In reply to message 4 from mhmd jawad
I'm sorry, I should have commented since, all the typographical bugs have been corrected at my end too, but one logical bug that I couldn't fish out is this:
Given that :
$criteria = array('gender'=>'male','status'=>'active');
$data = array('gender'='female');
When I passed the parameters to the update criteria function, it will not perform the update because both the $criteria and $data has one of the same field attribute 'gender' but returns 1
When I also passed the $criteria and $data with different fields name, it will perform the update and return 1 as output.