Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/11/2010, 10:02
underworf
 
Fecha de Ingreso: diciembre-2009
Mensajes: 108
Antigüedad: 14 años, 4 meses
Puntos: 0
Respuesta: [ayuda]borrar base de datos con php

Gracias por tu respuesta mi pana pero asi no funciona jeje


<?php
include("conex.php");
$link=Conectarse();
$id=$_GET['id'];
mysql_query("delete from animes where id = $id",$link);

header("Location: master.php");
?>

mira asi lo ejecuta pero no lo borra men

<?php
include("conex.php");
$link=Conectarse();
$id=$_GET['id'];
mysql_query("delete from animes where nombre = $id",$link);

header("Location: master.php");
?>

y asi borra toda la base de datos