Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/05/2010, 15:00
Avatar de function
function
 
Fecha de Ingreso: abril-2010
Mensajes: 278
Antigüedad: 14 años
Puntos: 13
Respuesta: Problema con DELETE en MySQL

Cita:
Iniciado por gozamilefa Ver Mensaje
Ya probe esta sintaxix. Pero asi no me elimina el dato de la tabla. Sigue apareciendo.
Como recoges la variable $_POST['id']??, a lo mejor no reconoce el id


yo lo haria asi:

Código PHP:
Ver original
  1. //aqui tu conexion
  2. $sql = mysql_query("DELETE FROM tabla WHERE campo = '".$_POST['id']."'");