Skip to content

deleteEmployee and updateEmployee return true even the id is invalid #6

@The-fthe

Description

@The-fthe

Suggest adding rowCount check

       if ($stmt->rowCount > 0) {
            return true;
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions