Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/05/2012, 20:48
echo_
 
Fecha de Ingreso: noviembre-2011
Ubicación: Paris
Mensajes: 450
Antigüedad: 12 años, 5 meses
Puntos: 7
problema con delete

Buenos dias a todos tengo el siguiente codigo pero no me ejecuta el delete!
Código PHP:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<link href="Untitled-2.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="a">
  <?php
 
//Funcion para el cebreado cada 1 registro.
function alt ($cebra) {
    if (
$cebra/== floor($cebra/2)) {
        return 
' class="alt"';
    } else {
        return 
'';
    }
}
$cebra=1;
 
?>
  
  
  
  
  <?php
include "config.php";



if (isset (
$_GET["grupo"])){
$result=mysql_query("Delete From turnos  WHERE grupo = ".$grupo."",$conexion);
echo
"
<html>
<body>
<h3 color='#FF00000'>Los registros han sido actualizados</h3>
</body>
</html>"
;
}





$result=mysql_query("SELECT * FROM turnos ORDER BY grupo",  $conexion);

$num_results mysql_num_rows ($result);
  

  for( 
$i=1$i<=$num_results$i++ ) {   $row mysql_fetch_array ($result); ?>
  
 
  <div  <?php echo alt($zebra); $zebra++; ?>>
    <table width="502" border="1">
      <tr>
        <td width="150"> <?php echo $row[0]; ?></td>
        <td width="170"><?php echo $row[1];  echo'</td>
        <td width="160">  <a href="index.php?grupo=$row[0]">Mi enlace</a></td>
        
      </tr>
    </table>
  </div>'
;
     } 
?>
     
     

   
   
   
   <p>&nbsp; </p>
  <p>&nbsp;</p>
</div>
</body>
</html>