function delete($id) { if ($this->id == '') { $this->id = $id; } return parent::do_delete(); }
function delete($id) { global $db; if ($this->id == '') { $this->id = $id; } // error check return parent::do_delete(); }