-
Notifications
You must be signed in to change notification settings - Fork 254
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
Return error #57
Comments
You should be able to use the $lastError variable to return this.. $db = new MySQL('.....'); Hope it helps. |
I'm using the PDO class which doesn't have a lastError variable. |
Hi. I know I'm late to the game here, and you're probably better off using a different framework, but if you want to see the error, you can add You'll likely need to comment those lines out or put in a DEBUG = TRUE statement to flip that info on and off... there's probably a better way to do it... but yeah, thats all I got right now. |
has anyone got a solution for this ? |
i got it ! , check my DBPDO.php file > https://github.com/mrbeandev/PHP-MySQL-Class 😄 |
Started using your class and it works great except when I had a typo in my SQL and was wondering why nothing was being inserted into my DB. A great addition to the script would be to display an error if a query fails. Keep up the good work.
The text was updated successfully, but these errors were encountered: