RE: [PHP-ES] ¿Donde esta el error?menus desplegabl es PHP
| From: | Pablo Samela | Date: | Wed, 05 Dec 2001 20:01:45 +0000 |
| Subject: | RE: [PHP-ES] ¿Donde esta el error?menus desplegabl es PHP | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-16417@lists.php.net to get a copy of this message | ||
prueba asi!
<select name="" size="">
<?
mysql_connect("","","");
$resultat=mysql_db_query("","select * from placas_base");
while ($fila=mysql_fetch_object($resultat)) {
echo"<option>$fila->modelo</option>";
}
mysql_free_result ($result);
?>
</select>
sino revisa aqui:
http://www.php.net/manual/en/function.mysql-fetch-object.php
Pablo