RE: Stopping display of DB errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Todd Cary [mailto:todd@xxxxxxxxxxxxxxxxxx] 
> Sent: Thursday, January 06, 2005 11:36 AM
> Subject:  Stopping display of DB errors
> 
> When I run a query using Interbase and if an error occurs, the error
displays in the browser window even though I am testing for errors.  Is
there a way to prevent this?

Suppress the error by prefixing the function with @:

    $sthdl  = @ibase_query($stmnt,$dbh);  <------ won't display error
regardless

Cheers,
- Martin Norland, Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent
those of St. Jude Children's Research Hospital.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux