FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Return true in ExecuteSQL could be a confusing point · Issue #36 · a1phanumeric/PHP-MySQL-Class · GitHub

Return true in ExecuteSQL could be a confusing point #36

Description

if($this->records > 0){
$this->ArrayResults();
return $this->arrayedResult;
}else{
return true;
}

When we use ExecuteSQL, commonly here we can't use :

$ret = $db->ExecuteSQL (....);
if (empty($ret)) {
}

coz it's always "TRUE", so you don't know it's empty.

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


    Back | FazBrowse Home | New Git URL