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.

21 lines
564 B

6 years ago
<?php
class Delete extends CI_Model {
public function __construct()
{
parent::__construct();
// Your own constructor code
}
//删除单张图片数据,需要传入图片ID
public function del_img($imgid){
$sql1 = "DELETE FROM `img_images` WHERE imgid = '$imgid'";
$sql2 = "DELETE FROM `img_imginfo` WHERE imgid = '$imgid'";
//执行删除数据库
$this->db->query($sql1);
$this->db->query($sql2);
}
}
?>