<?php
mysql_connect("localhost", "root") or die(mysql_error());
mysql_select_db("cep" ) or die(mysql_error());
$id=$_GET['id'];
mysql_query("delete from matricula where DNI='$id'");
mysql_query("delete from alumnes where DNI='$id'");
echo mysql_errno();
header("Location: borraralumnos.php");
?>

Borrados

  • 1.
    <?php mysql_connect("localhost", "root") ordie(mysql_error()); mysql_select_db("cep" ) or die(mysql_error()); $id=$_GET['id']; mysql_query("delete from matricula where DNI='$id'"); mysql_query("delete from alumnes where DNI='$id'"); echo mysql_errno(); header("Location: borraralumnos.php"); ?>