Jump to content

[SOLVED] Do i have to use '@' before mysql_connect and other fuctions inside class?


colap

Recommended Posts

Typically the use of @ is bad.  It's slower than without it, and it suppresses errors.  Isn't it better to fix them than suppress them?

 

 

Typically I just silently log errors (in other words, display_errors = 0) but don't suppress them.

 

 

But, sometimes while doing quick testing, or as MadTechie said, personal code, it can be fine.

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.