public function delete($table, $where)
    {
        $this->prepare("DELETE FROM $table WHERE $where");

        $this->execute();
        $num = $this->rowCount();

        if ($num < 1) {
            throw new NonExistentID('Cannot delete the record with that ID since it is non existent');
        }
    }
public function delete($table, $where)
    {
        $this->prepare("DELETE FROM $table WHERE $where");

        $this->execute();
        $num = $this->rowCount();

        if ($num < 1) {
            throw new NonExistentID('Cannot delete the record with that ID since it is non existent');
        }
    }
public function delete ( $ table , $ where ) { $ this -> prepare ( "DELETE FROM $table WHERE $where" ) ; $ this -> execute ( ) ; $ num = $ this -> rowCount ( ) ; if ( $ num < 1 ) { throw new NonExistentID ( 'Cannot delete the record with that ID since it is non existent' ) ; } }
Delete row from database.
Delete row from database .