impemented del_fav

This commit is contained in:
int2001
2023-08-18 14:58:27 +00:00
parent e86b0a2f86
commit baa3724da9
2 changed files with 20 additions and 1 deletions

View File

@@ -22,6 +22,12 @@ class User_options_model extends CI_Model {
return $this->db->query($sql, array($uid, $option_type));
}
public function del_option($option_type, $option_name) {
$uid=$this->session->userdata('user_id');
$sql='delete from user_options where user_id=? and option_type=? and option_name=?';
return $this->db->query($sql, array($uid, $option_type,$option_name));
}
}
?>