Jump to content

[SOLVED] Suppression error


fourlincoln10

Recommended Posts

Hi,

 

I'm trying to suppress error messages from the pear MDB2 function MDB2::Connect in a database access class I'm writing. I tried the folllowing, but I'm getting a syntax error. Would someone please tell me the proper way to suppress errors from the function? It appears to be related to assigning a reference as the syntax error goes away when I do normal assignment.

 

$this->conn =& @MDB2::connect($dsn, $upc);

 

Thanks,

 

Troy

Link to comment
https://forums.phpfreaks.com/topic/48349-solved-suppression-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.