salve a tutti.
devo eliminare un record su 4 tabelle verificando in un campo intestato IDCompany ho fatto così:
ma mi da errore:Codice PHP:
mysql_query("Delete from company, finance, regcompany, user Where IDeControl='$_SESSION[IDeC_eC]' AND IDCompany='$idcompany'")
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 'Where IDeControl='rv84387bvh48b8h2487b54b58b8bb4' AND IDCompany='eC98742733''