By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,350 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,350 IT Pros & Developers. It's quick & easy.

@mysql_query ?

P: n/a
Hi,
What would be the meaning of the '@' in @mysql_query()?
I did not find googling, I miss some keyword...
Thank you for any help.
Apr 30 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Apr 30, 12:15 pm, "Mihamina Rakotomandimby (R12y)"
<miham...@rktmb.orgwrote:
Hi,
What would be the meaning of the '@' in @mysql_query()?
I did not find googling, I miss some keyword...
Thank you for any help.
It prevents any errors that might be raised from being displayed.

<http://www.php.net/manual/en/language.operators.errorcontrol.php>

Apr 30 '07 #2

P: n/a
"Mihamina Rakotomandimby (R12y)" <mi******@rktmb.orgwrote in message
news:f1**********@cabale.usenet-fr.net...
Hi,
What would be the meaning of the '@' in @mysql_query()?
I did not find googling, I miss some keyword...
Thank you for any help.
@ in front of any PHP function suppresses error messages.

D.
Apr 30 '07 #3

P: n/a
As well as suppressing error messages, it will return false if there
is an error. That way you can handle errors that would otherwise
trigger error handling, including ugly error messages on output and
crap in your logs. With an @, you can use use the statement in a
condition to take appropriate action after the error messages is
suppressed.

-Mike PII

May 1 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.