function removeimage($id) { $sql = "delete from `rentorhire_images` where photo_id='" . $id . "'"; $result = $this->mysql->query($sql); $ph = new photo(); $ph->deletePhoto($id); }