Re: Display server error
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?
tia
You can get the MySQL error number with mysql_errno() and the text with
mysql_error(). Then just display whatever text you wish.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
Relevant Pages
- Re: ASP Server Pages Timeout
... Please disable "Show Friendly HTTP Error Messages" in your browser ... The error is HTTP 500> Internal Server Error - The page cannot be displayed. ... >>> I have an online testing system with ASP server pages and at times the IIS>>> Server will display the page cannot be displayed error. ... (microsoft.public.inetserver.iis) - Error messages (forwarded by friend)
... Hi finally got some of the event or error messages.. ... she said that it is a driver error.. ... If she has a fancy display card, ... Some display cards have no fans. ... (microsoft.public.windowsxp.basics) - Re: Error messages (forwarded by friend)
... Rainy ... > Hi finally got some of the event or error messages.. ... she said that it is a driver error.. ... Some display cards have no fans. ... (microsoft.public.windowsxp.basics) - App VisualStyle misbehaviour, runtime only (Vista)
... executing app all the buttons are displayed in Windows classic style, ... This time there were no error messages and the application ran ... OK, but as I say, it stubbornly refuses now to display the XP/Vista ... restore the XP/Vista Visual styles for buttons, ... (microsoft.public.dotnet.languages.vb) - Re: [PHP] Question about form submitting / clarification
... in an onsubmit handler. ... What i don't know is how to display the error messages in the same page ... The function would display the form with print commands that would display the error messages. ... You will also need a print error function that takes the input element name and errors array as arguments. ... (php.general) |
|