CI下如何判断mysql 增删改查是否成功
CI下的增删改查判断语句如何写?返回最后一行插入的自增ID如何写。 自己动手丰衣足食,不要求看一遍文档能记者所有内容,起码要知道文档里有什么内容 $this->db->insert_id() 最后一行插入的自增ID如何写。 public function add($table, $data) { return $this->db->insert($table, $data); }增函数返回数组 public function dell($table, $sid) { $bool = $this->db->delete($table, $sid); return $bool; }删函数 返回true或者false Aloghli 发表于 2015-10-22 10:05$this->db->insert_id() 最后一行插入的自增ID如何写。
你得完成增加操作后才能执行啊
页:
[1]