Ver Mensaje Individual
  #11 (permalink)  
Antiguo 22/04/2008, 03:52
Avatar de Eleazan
Eleazan
 
Fecha de Ingreso: abril-2008
Ubicación: Ibiza
Mensajes: 1.879
Antigüedad: 16 años, 1 mes
Puntos: 326
Re: error php. ayuda.

en los where, DNI imagino que sera una string, asiq debes escaparla con comillas, y te kedaria

Código PHP:
...
$resultat=mysql_query("DELETE  from treballadors WHERE DNI='$DNI'",$conexio);
...
$resultat=mysql_query("SELECT Nom,Cognoms from treballadors WHERE DNI='$DNI'",$conexio); 
...