Ragazzi allora dopo un submit ho questo codice che mi dovrebbe cancellare un record, dopo aver controllato che un campo sia uguale al valore preso dall'$_post, ma mi da errore! il campo $dati[0] è quello giusto ho ricontrollato piu volte!
Codice PHP:
$dati = explode(";",$_POST['accept_ask']);
mysql_query ("DELETE FROM ask WHERE id_trattativa = ".$dati[0]."") or die(mysql_error());
codice:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1