Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/02/2006, 06:58
Avatar de JorgitoAlfajor
JorgitoAlfajor
 
Fecha de Ingreso: enero-2006
Mensajes: 152
Antigüedad: 18 años, 3 meses
Puntos: 1
Te falta la llave } para cerrar el if.

Código PHP:
<html>
<head>
<body>
<?php
if (isset($dni)){

$link mysql_connect("localhost""root""pasword");
mysql_select_db("becario2");
$dni=$_get['dni'];
mysql_query("delete from profesores where dni='".$_get['dni']."'");
header("Location: index.php");
}
?> 
</body>
</head>
</html>
Saludos.
__________________
¿Se me entiende la letra?