Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/05/2005, 09:21
kirsi
 
Fecha de Ingreso: abril-2005
Mensajes: 18
Antigüedad: 19 años
Puntos: 0
Sigue sin hacerme caso, y he probado las dos cosas...
Voy a poner un poco mas del codigo a ver si se ve el error:
Código PHP:
$sql = "Select * from $bd_tabla Where id='".$_GET["id"]."'"; 
$result = mysql_query($sql) or die (mysql_error());

while($row = mysql_fetch_array($result)){

echo "<center> Name: <b>".$row["Name"]."</b><br><br>\n"; 

echo "Telephone: <b>".$row["Telephone"]."</b><br><br>\n"; 

echo "Date: <b>".$row["Date"]."</b><br><br>\n";

?>
<form action="pagina1.php?id=<?php echo $id ?>" method="post"><br>
<input type="hidden" name="id" value="<?php echo $id?>">
<input type="submit" class="boton" value="Delete" name="delete">
</form></p>
<?
if(isset($_POST['delete'])) {

$query="Update $bd_tabla Set Name= NULL, Date= NULL, Time=NULL, Datereturned=NULL, Availability='Available' Where id='".$_GET['id']."'";
$resultado=mysql_query($query) or die (mysql_error());

Ya no se que hacer... Creo que sigue sin quedarse con el id...
Muchas gracias de todas formas