Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/11/2010, 14:29
Avatar de catpaw
catpaw
 
Fecha de Ingreso: mayo-2010
Ubicación: xalapa
Mensajes: 856
Antigüedad: 14 años
Puntos: 23
Respuesta: Problema combo PHP Duplicado.

Haber prueba asi:

Código PHP:
<select name="EMPG004" id="EMPG004" style="width:130px;">
<?php 
$result 
sql_query("select nombre from tblnacionalidad"$dbi);
if (
sql_num_rows($result$dbi) > 0) {
   while(list(
$nombre) = sql_fetch_array($result$dbi)) { 
           if(
$EMPG004==$nombre){
              echo 
"<option value='$EMPG004' selected>$EMPG004</opcion>";
          }
        else{
              echo 
"<option value='$nombre'>$nombre</opcion>";
          }
      }

?>
</select>