what is @

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

what is @

Post by m2babaey »

Hi
what is the difference between

Code: Select all

$result = @mysql_query( $sql );
and

Code: Select all

$result = mysql_query( $sql );
Thanks for your help
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: what is @

Post by califdon »

The @ suppresses error messages, in case the statement fails.
Post Reply