MyBB Community Forums

Full Version: Detect mysql error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I've been making a plugin for a while, so far so good, but I am unsure if I made all mysql queries injection-proof.

Now I was wondering if there is a (simple) way to detect mysql errors while using this plugin and disable the plugin automaticly if there is one triggered.

I am really not sure if this is possible at all. I hope someone can make this clear for me =)
Still like to know whether this is possible or not - thanks.
You're better off making sure the plugin is secure instead of trying to disable it. The detection would be made after the query so regardless of what you do after, the query would still be ran.

If you're unsure if you're code is secure, feel free to upload it here or email me (nathan at mybb dot com) and I'd be happy to take a look at the code for you. Smile