Check if a value exists in a result_array()

后端 未结 1 1421
庸人自扰
庸人自扰 2021-01-29 06:07

I have the following query ....

$query = \"SELECT * FROM crescent.main_stock where transaction_type like \'%Receive%\' LIMIT 0,1;\";
        $query = $this->d         


        
相关标签:
1条回答
  • 2021-01-29 06:24

    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);
    
    0 讨论(0)
提交回复
热议问题