Welcome Guest, Not a member yet? Register   Sign In
MySQL error messages
#2

[eluser]xwero[/eluser]
You could set the error display off but without an error the user will think everything is ok so that's no solution.

Because the database class isn't extendable and the error isn't meant for the public i think it's best to use a try/catch block to intercept the error.

The easiest way is to prevent errors for example by checking if the key exists an generate another if it does.


Messages In This Thread
MySQL error messages - by El Forum - 01-10-2008, 08:52 AM
MySQL error messages - by El Forum - 01-10-2008, 09:02 AM
MySQL error messages - by El Forum - 01-10-2008, 06:52 PM
MySQL error messages - by El Forum - 01-11-2008, 05:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB