pandu Posted June 16, 2009 Share Posted June 16, 2009 Hello, I am going thru some code and noticed the following. Why is there an @ sign prior to the mysql function? function Query($query) { return @mysql_query($query, $this->link_id); } Thanks. Link to comment https://forums.phpfreaks.com/topic/162460-solved-why-an-before-mysql-functions/ Share on other sites More sharing options...
Maq Posted June 16, 2009 Share Posted June 16, 2009 Why...? I don't know. But it's used for suppressing error messages. Link to comment https://forums.phpfreaks.com/topic/162460-solved-why-an-before-mysql-functions/#findComment-857497 Share on other sites More sharing options...
pandu Posted June 16, 2009 Author Share Posted June 16, 2009 ahhhhh.. thanks Maq - makes sense. Link to comment https://forums.phpfreaks.com/topic/162460-solved-why-an-before-mysql-functions/#findComment-857504 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.