RE: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Adam Plocher
How about something like this.. function runquery($query) { $query = mysql_query($query); if (mysql_error()) { echo div style=\color:red\MySQL Error: . mysql_error() ./div\n; exit(1); } return $query; } -Original

RE: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Michael J. Pawlowsky
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) {