Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/05/2011, 08:55
Avatar de s00rk
s00rk
 
Fecha de Ingreso: octubre-2010
Ubicación: Mexico
Mensajes: 238
Antigüedad: 13 años, 6 meses
Puntos: 48
Respuesta: Código mal escrito

Bueno ahi yo lo haria asi no me gusta mucho meter html dentro de php prefiero php dentro del html, continuo y estas seguro que la conexion a la DB funciona ? y la consulta que hacer la hace bien ?

Codigo como yo lo haria:
Código PHP:
<?php
session_start
();
for (
$i=1$i<=$_POST['num_familias']; $i++)
{
    
$valor=$_POST["familia"][$i]["descripcion"];
    
?>
    <a href="/tienda/logica_presentacion/familia_productos.php?categoria=<?=$valor?>" style="text-decoration: none">
    <?=$valor?>
    </a><br/>
    <?
}
?>