Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/05/2007, 15:38
Avatar de rockobop
rockobop
 
Fecha de Ingreso: octubre-2004
Ubicación: Bolivia
Mensajes: 826
Antigüedad: 19 años, 6 meses
Puntos: 1
no me funciona la consulta

hola a todos tengo lo siguiente

Código PHP:
<html>
<head>
   <title>Ejemplo de PHP</title>
</head>
<body>
<?php
   
include("conec.php");
   
$link=Conectarse();
   
$result=mysql_query("select * from posteo",$link);
?>
    <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1>
      <TR>
         <TD>&nbsp;IDPOSTEO&nbsp;</TD>
         <TD>&nbsp;PALPOSTEO&nbsp;</TD>
         <TD>&nbsp;TAMPOSTEO&nbsp;</TD>
         <TD>&nbsp;Borra&nbsp;</TD>
      </TR>
<?php
   
while($row mysql_fetch_array($result)) {

        
printf("<tr><td> &nbsp;%s&nbsp; </td><td> &nbsp;%s&nbsp; </td><td> &nbsp;%s&nbsp; </td></td><td> <a href=\"borra.php?ID=%ID\"> Borra </a></td></tr>"$row["IDPOSTEO"], $row["PALPOSTEO"], $row["TAMPOSTEO"], $row["IDPOSTEO"]);
   }
   
mysql_free_result($result);
?>
</table>
</body>
</html>
q me muestra el contenido de mi base de datos y al hacer click en borrar, debería ejecutar un delete en la tabla con el siguiente código

Código PHP:
<?php
   
include("conec.php");
   
$link=Conectarse();
   
   
$query="delete from posteo where IDPOSTEO='".$_POST["IDPOSTEO"]."'";
   
   
mysql_query($query,$link);
  
   
//header("Location: eliminareg.php");
?>
pero no me llega a recuperar ningún valor para eliminar

alguien me podría echar una manito, indudablemente estoy haciendo algo mal, pero no se q

saludos

q tengan un buen dia.
__________________
:pensando: Tú no necesitas un libro mágico, un gurú carismático, rituales primitivos. Sólo necesitas tus cinco sentidos.:adios: