Ver Mensaje Individual
  #7 (permalink)  
Antiguo 05/11/2009, 20:43
Avatar de zaetoner
zaetoner
 
Fecha de Ingreso: noviembre-2007
Ubicación: La ciudad de México
Mensajes: 607
Antigüedad: 16 años, 5 meses
Puntos: 30
Respuesta: registros repetidos..

entonces cambia esto:


if ($w = mysql_fetch_array($res)){
echo ' <select name= "mascota" style = "width: 190px"> ' ;
echo $sql;
do {
echo '<option value= "'.$w["IdMascota"].'">'.$w["IdMascota"].' --> '.$w["NombreMascota"].' </option>';

} while ($w = mysql_fetch_array($res));
echo '</select>';
}

por esto:

echo ' <select name= "mascota" style = "width: 190px"> ' ;


while($w = mysql_fetch_array($res)){

echo '<option value= "'.$w["IdMascota"].'">'.$w["IdMascota"].' --> '.$w["NombreMascota"].' </option>';

}

echo '</select>';
__________________
...