I know that mySQL errors are caught in mysql_error() and I find that
function extremely useful (kudos!). However, I have several queries in a few
scripts of mine but am wondering if anyone has written a small function that
catches errors and outputs them. What I mean is lets say I have a block of
Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
Sent: Sat 1/4/2003 6:43 PM
To: [EMAIL PROTECTED]
Cc:
Subject: [PHP] Function to catch all mySQL errors?
I know that mySQL errors are caught in mysql_error() and I
Also if you dont want ot to break you need to add the @ operator in front
Mike
*** REPLY SEPARATOR ***
On 04/01/2003 at 6:47 PM Adam Plocher wrote:
This encoded message has been converted to an attachment.
How about something like this..
function runquery($query)
{
);
AP }
AP return $query;
AP }
AP -Original Message-
AP From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
AP Sent: Sat 1/4/2003 6:43 PM
AP To: [EMAIL PROTECTED]
AP Cc:
AP Subject: [PHP] Function to catch all mySQL errors
4 matches
Mail list logo