I have the following query ....
$query = \"SELECT * FROM crescent.main_stock where transaction_type like \'%Receive%\' LIMIT 0,1;\"; $query = $this->d
If you want to know if your query returned a value in the form of an array, you can put this at the end of your function:
$result = $query->result_array(); print_r($result);