Counting the number of results returned by a database query in Codeigniter

后端 未结 6 1739
无人及你
无人及你 2021-01-12 15:53

I am not having much luck detecting when a database query in Codeigniter returns zero results. I have had a good read of the notes on the PHP count function but am none the

6条回答
  •  广开言路
    2021-01-12 16:18

    Try if(isset($result) && count($result)) on your view file then inside the if statement you can write the code you want to executed when the inserts in your db are more than 0...good luck!

提交回复
热议问题