Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/08/2006, 07:57
Avatar de helthon
helthon
 
Fecha de Ingreso: junio-2005
Ubicación: Lima
Mensajes: 549
Antigüedad: 18 años, 10 meses
Puntos: 7
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";
}
?>

Buscalo aqui google.com.pe
__________________
HELTHON FUENTES
FLORERIA FLORES PERU Floresperu.com.pe
Garantizamos que cada entrega de flores será de la más alta calidad y frescura