Re: [PHP] MS SQL error handling...

2001-03-31 Thread Christian Dechery
At 11:58 30/3/2001 -0500, you wrote: Hope it helps. Let me know if it works for you. well... it was in fact a great idea... but it didn't work... for some reason... ob_*() functions do not grab warnings and error messages generated by PHP... so warnings AND the error messages were lost...

[PHP] MS SQL error handling...

2001-03-30 Thread Christian Dechery
isn't there a better way to handle MS SQL error messages? I can't even fetch them... look at these warnings... they only show in development side, I don't want warnings on the production site, so I turn them off with error_reporting()... Warning: MS SQL message: There is already an object

Re: [PHP] MS SQL error handling...

2001-03-30 Thread Morgan Curley
Have you tried writing a wrapper function for mssql_query(), something like: my_mssql_query( $query, $link_id){ global $php_errormsg; ob_start(); $result = mssql_query( $query, $link_id ); if( !$result ){ $php_errormsg = ob_get_contents();