class manage {
private $entryId;
function __construct($entryId) {
$this->entryId = $entryId;
}
function deleteEntry() {
//delete $this->entryId from database
}
}
$m = new manage(23);
$m->deleteEntry();
how this method delete entry from db deleteEntry();
how sql query works with this
please help to understand