Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error Handler] Uncaught Error: Call to undefined method DB::getLastErrno() #976

Open
hippoduck opened this issue Sep 22, 2021 · 0 comments

Comments

@hippoduck
Copy link

hippoduck commented Sep 22, 2021

When using the example error handler code exactly as it is, the update works, but the error in the title appears. Not sure why this is, all other queries work fine for me, just the error handling has this issue.

$db->where('login', 'admin')->update('users', ['firstName' => 'Jack']);

if ($db->getLastErrno() === 0)
    echo 'Update succesfull';
else
    echo 'Update failed. Error: '. $db->getLastError();
amanullah-1 added a commit to amanullah-1/PHP-MySQLi-Database-Class that referenced this issue Nov 4, 2021
Removed space before the parenthesis  of function getLastErrno to solve the issue ThingEngineer#976
avbdr pushed a commit that referenced this issue Sep 13, 2022
Removed space before the parenthesis  of function getLastErrno to solve the issue #976
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant