Check codeigniter query errors instead of showing them to the user

前端 未结 3 1039
没有蜡笔的小新
没有蜡笔的小新 2020-12-09 12:04

How can I check if a query went wrong instead of showing errors to users (containing database info which is unsafe).

Let\'s say I have such situation where my paging

3条回答
  •  忘掉有多难
    2020-12-09 12:41

    You can try this $this->db->error(); , this will get you the ErrorCode & Errormessage in array format.

提交回复
热议问题