I have the following query ....
$query = "SELECT * FROM crescent.main_stock where transaction_type like '%Receive%' LIMIT 0,1;";
$query = $this->db->query($query);
$result = $query->result_array();
if (in_array('Receive', $result)) {
echo 'this array contains Receive';
}
I am trying to check if a value Receive exists inside the result_array(), What is the best way to implement this? Which function should I use to check ?