Skip to content

Error Checking #4

@josefnpat

Description

@josefnpat

In case your library can't operate on the PDO, and the PDO calls return null, it would be wise to have some form of error checking so the user of the library doesn't have to read through your code to figure out the issue.

Also, you're using FETCH_ASSOC here but you're using a integer index here. Not only is there no check, but you ought to be reading from this array associatively (chromium, why do you think this word is misspelled?) in case you ever change your SQL call.

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