Re: Display server error
- From: "Janwillem Borleffs" <jw@xxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 17:36:17 +0200
Bob Sanderson wrote:
Is there a way, using PHP, to detect and display an error from a MySQL
server? Can I, by using error numbers or some similar method, create
my own error messages?
Sure, you can suppress the error message by preprending an at sign "@" to
the mysql_* function call and get the error code from the string returned by
the mysql_error() function.
Afterwhich, you can use the list of error codes from the MySQL website to
map the error code to whatever you like.
JW
.
Relevant Pages
- Dont know how to debug SSIS packages
... I'm quite new to SSIS packages, so I don't know how to debug them very well. ... I have a Flat File Source, a Script Component, and an OLE DB Destination. ... to look up all of the error messages. ... Destination" failed with error code 0xC0209029. ... (microsoft.public.sqlserver.dts) - Re: suppress Javascript error messages in vb .net
... would like to suppress javascript error messages. ... I can trap all the functions and subs that belong IDocHostUIHandler. ... (microsoft.public.dotnet.languages.vb) - Re: suppress Javascript error messages in vb .net
... would like to suppress javascript error messages. ... I can trap all the functions and subs that belong IDocHostUIHandler. ... cause the javascript error message to be suppressed. ... (microsoft.public.dotnet.languages.vb) - Webbrowser Control doesnt trap the javascript error messages
... would like to suppress javascript error messages. ... use the silent property. ... cause the javascript error message to be suppressed. ... (microsoft.public.vb.general.discussion) - suppress Javascript error messages in vb .net
... would like to suppress javascript error messages. ... use the silent property. ... cause the javascript error message to be suppressed. ... (microsoft.public.vb.controls.internet) |
|