Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function delete($id){
- // return "test";
- $data="";
- $row = $this->getKategori($id);
- if (count($row["data"]) == 0) {
- http_response_code(304);
- return array("msg"=>$row["msg"]."id ".$id);
- }
- $kueri = "DELETE FROM ".$this->table_name;
- $kueri .=" WHERE id_kategori='".$id."'";
- $hasil = $this->db->query($kueri) or die ("Error ".$this->db->connect_error);
- http_response_code(200);
- return array("msg"=>"success");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement