Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/06/2011, 18:25
Avatar de dvbeaumont
dvbeaumont
 
Fecha de Ingreso: marzo-2011
Ubicación: Caracas
Mensajes: 145
Antigüedad: 13 años, 1 mes
Puntos: 1
Respuesta: lista menu y mysql

Prueba con esto

Código PHP:
<?php 
   
include("conexion.php"); 
   
$link=conectar(); 
   
$result=mysql_query("select * from t_tipo ORDER BY id_tipo",$link); 
?>
y en el html esto


Código PHP:
<select name="tipo">
<?php
   
while($row mysql_fetch_array($result)) { 
                    echo 
"<option value='".$row["id_tipo"]."'>#".$row["id_tipo"]." | ".$row["ti_name"]."</option>";
                }
            
?>
        </select>