Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. The @ operator tells PHP to suppress error messages, so that they will not be shown.
  2.  
  3. For instance, using:
  4. ```
  5. $result = mysql_query("this is an invalid query");
  6. ```
  7. would result in a warning being shown, telling you that the MySQL query is invalid, while
  8.  
  9. ```
  10. $result = @mysql_query("this is still an invalid query");
  11. ```
  12. would not.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement