Welcome Guest, Not a member yet? Register   Sign In
How to handle MySQL CONSTRAINT / error number
#4

[eluser]Unknown[/eluser]
RE: techgnome

You are right.

I have re-organise the code and use db transactions to fitful my needs.

Anyway, I need sometimes to handle MySQL error (for example, handling duplicated username insert) and those two function do the job:

Code:
$errtxt = $this->db->_error_message();
$errno = $this->db->_error_number();

Thank You all for support.


Messages In This Thread
How to handle MySQL CONSTRAINT / error number - by El Forum - 12-22-2010, 04:08 PM
How to handle MySQL CONSTRAINT / error number - by El Forum - 12-22-2010, 04:45 PM
How to handle MySQL CONSTRAINT / error number - by El Forum - 12-22-2010, 06:02 PM
How to handle MySQL CONSTRAINT / error number - by El Forum - 12-24-2010, 04:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB