I want avoid to display an error when is inserted a duplicate entry in the database.
I have added this "@" but the error is always displayed:
$result = @mysql_query($query) or die("Query failed insert. Mysql error: ".mysql_error() );
output:
Query failed insert. Mysql error: Duplicate entry for key 'url'
How to avoid to show an error when is inserted a duplicate entry ?