Un'altra cosa che ho notato leggendo meglio il tuo script.

<?



echo "<font color=\"#red\"> :: LISTA DEI CONTATTI </font>
";
$cn = mysql_connect("ip", "user", "passw");
mysql_select_db("nomedb_5", $cn);
$query = mysql_query("SELECT * FROM contatti", $cn);
$cancella = mysql_query("DELETE * FROM contatti where id = 2 ", $cn);
$result = mysql_query($cancella);
$quanti = mysql_num_rows($query);
if ($quanti == 0)
{
echo "Nessun record!";
}
else
{
for($x=0; $x<$quanti; $x++)
{
$rs = mysql_fetch_row($query);
$id = $rs[0];
$rag_sociale = $rs[1];
$nome = $rs[2];
$cognome = $rs[3];
$citta = $rs[4];
echo "<table bgcolor=\"#ffffff\" border=\"1\"><tr><td>Ragione Sociale : " . $rag_sociale . "</td><td>Nome : " . $nome . "</td><td>Cognome : " . $cognome . "</td><td>Citta' : " . $citta . "<a href=\"cancella_contatto.php?record=$id\">Cancella </a></td></tr></table>
";
}
}
mysql_close($cn);

?>
Codice PHP:
    $cancella mysql_query("DELETE * FROM contatti where id = 2 "$cn); 
Cosa significa questo messo lì????