ImgURL是一个简单、纯粹的图床程序,让个人图床多一个选择。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
905 B

<?php
class Insert extends CI_Model {
public function __construct()
{
parent::__construct();
// Your own constructor code
}
//插入到images表
public function images($datas){
if($this->db->insert('images', $datas)){
//如果插入成功返回ID
return $this->db->insert_id();
}
else{
return false;
exit;
}
}
//插入到imginfo表
public function imginfo($datas){
if($this->db->insert('imginfo', $datas)){
//如果插入成功返回ID
return $this->db->insert_id();
}
else{
return false;
exit;
}
}
}
?>