Código PHP:
<?php
include("conex.phtml"); // JALAR LA CONEXION A LA B.D.
$link=Conectarse();
//$id ES ENVIADO DESDE EL BOTON BORRAR
$id=$_GET['id'];
mysql_query ("delete from TABLAwhere ID_TABLA = $id",$link);
header("Location: ejem07e.phtml");
?>
otra Manera:
Código PHP:
<?
if (isset($id))
{
// process form
$link = mysql_connect("localhost", "root");
mysql_select_db("mydb",$db);
$sql = "DELETE TABLA WHERE ID_TABLA =$id")
$result = mysql_query($sql);
}else{
echo "Debe especificar un 'id'.\n";
}
?>
![Cool](http://static.forosdelweb.com/fdwtheme/images/smilies/cool.png)
Buscalo aqui
google.com.pe