/** * delete line from database * @return bool */ public function delete() { if (!preg_match("/(.*)WHERE(.*)/i", $this->generateQuery())) { return false; } if ($this->selectClass->queryString($this->generateQuery()) == false) { return false; } }
/** * Update the database * @return bool */ public function update() { if ($this->selectClass->queryString($this->generateQuery()) == false) { return false; } }