function delete($table, $where) { $sql = "DELETE FROM `" . $table . "` WHERE " . $where; $this->db_rs = $this->query($sql); if (!$this->db_rs) { return false; } return $this->affected_rows(); }