delete value in table mysql ubuntu code example
Example 1: mysql delete row
DELETE FROM products WHERE product_id=1;
Example 2: delete query
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}
DELETE FROM products WHERE product_id=1;
public function deletedata(){
$this->db->where('id', 2);
$this->db->delete('table_name');
}