Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/10/2011, 12:14
sebacomas
 
Fecha de Ingreso: mayo-2010
Mensajes: 414
Antigüedad: 14 años
Puntos: 2
Respuesta: menu dinamico

el codigo:

<?php

$orden="SELECT* FROM grupo_de_imagenes";
$rs=mysql_query($orden, $conn) or die (mysql_error());
$fila=mysql_fetch_array($rs);

echo "<ul class='menu'>";



while ($fila!=NULL){

$grupo=$fila["grupo"];

echo "<li><a href='galeria.php?grupo=$grupo'>".$fila["grupo"]."</a></li>";
$fila=mysql_fetch_array($rs);

}

echo "</ul>";

?>