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. Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.