|
Posted by d on 09/26/11 11:39
<r-jones@orange.net> wrote in message
news:1139487169.480653.33110@z14g2000cwz.googlegroups.com...
> Sorry for the simplicity of the question, but im a newbie.
>
> Iv seen the mysql_query command written with an @ before it on some
> example codes. What, if any, is the difference? And if they are
> different, when should you use the @ and what does it do?
>
> Cheers
Prefixing a function with an @ will hide any error message generated by the
function. If a function will possibly fail, you can prefix it with the @,
then check the return value to see if the function did infact work or not.
It's kind of like a basic version of try/catch. Very basic. :)
[Back to original message]
|