Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/01/2010, 11:17
Avatar de breakervans
breakervans
 
Fecha de Ingreso: noviembre-2009
Ubicación: Vigo, España
Mensajes: 133
Antigüedad: 15 años, 4 meses
Puntos: 1
No me borra la cuenta

Hola, en el apartado de borrar la cuenta or algun motivo, cuando escribo el id del usuario y cierro sesión no se me borra la cuenta. Estos son los códigos, alguien sabe donde fallo?

delete.php

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<
title>Storm of Sighs</title>
  <
link rel="shortcut icon" href="../objetos/favicon.ico"
 
type="image/x-icon">
  <
link rel="stylesheet" href="estilo.css" type="text/css" media="all">

</
head>

<
body>
<
div id="cabecera"><img src="objetos/cabecera.gif" alt="cabecera" height="200" width="900"></div>

<
br><br>
<
font size=3 color=#FFFFFF>

  
</a><form method="post" action="delete2.php">
id :<input type="Text" name="id"><br>
<
input type="Submit" name="enviar" value="Aceptar información">
</
form>
  </
font></p>

</
select>
<
br>
</
FORM>
</
div>

</
BODY>
</
HTML
delete2.php

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Storm of Sighs</title>
  <link rel="shortcut icon" href="../objetos/favicon.ico"
 type="image/x-icon">
  <link rel="stylesheet" href="estilo.css" type="text/css" media="all">

</head>

<body>
<div id="cabecera"><img src="objetos/cabecera.gif" alt="cabecera" height="200" width="900"></div>

<br><br>
<font size=3 color=#FFFFFF>

<!-------

<?php 
if (isset($id)){
// process form hay que vincular borra_form.html
$link mysql_connect("xxxxxxxxxx""xxxxxxxx""xxxxxxxx");
mysql_select_db("xxxxxx",$link); 
$sql "DELETE FROM ac_users WHERE id=$id";
$result mysql_query($sql) or die(mysql_error());
}else{
echo 
"Debe especificar un 'id'.\n";
}
//cierro conexion
include ("http://www.xxxxx.com/sistema/logout.php");

?>

--->

Cierra sesión y tu cuenta será borrada.

</BODY>
</HTML>
__________________
Diseño portadas para discos, interesados contactad conmigo.