Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/12/2004, 05:40
yaviz
 
Fecha de Ingreso: diciembre-2004
Mensajes: 371
Antigüedad: 19 años, 3 meses
Puntos: 0
Hola,,grasias por molestaros en contestar,,arregle eso,,y ahora me da este error:

Parse error: parse error, unexpected T_STRING in /home/webcindario/basedato/BorrarMiarroba.php on line 14

YA KE ANTES NO DEJE CLARO LO KE KERIA KE HARIA EL CODIGO LO DIGO AHORA"kiero meter en la caja de texto el numero de registro a borrar y logo recargar la page para ke lo borre"

y el codigo viene a ser esto:

<html>
<body>
<form action="Borrar.php" method="post" >
Nº Regitro: <input type="text" name="TxtBorrar"><br>
<input type="submit" value="Borrar">
<?php
$id = $TxtBorrar;
if (isset($id))
{
$enlace = mysql_connect("localhost", "basedatos", "contraseña")
or die("No pudo conectarse : " . mysql_error());
mysql_select_db("basedatos");
$sSQL="DELETE FROM 'tabla1' WHERE $id=id"
mysql_db_query("basedatos",$sSQL); /*linea 14*/
}
?>
</form>
</body>
</html>