Re: Forms list from database
| From: | Jason T. Davidson | Date: | Mon, 01 Nov 2004 21:10:51 +0000 |
| Subject: | Re: Forms list from database | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37107@lists.php.net to get a copy of this message | ||
Here is the code:
<form name="form1" method="post" action="staff_code/add_code.php">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#CCCCCC">
<td colspan="3" bgcolor="#FFFFFF"><div align="center">
<select name="controller" id="controller">
<option> </option>
<option>
<?
while ($check=mysql_fetch_array($result)){
print "$check[LNAME],$check[FNAME]($check[CID])"; }?> </option>
</select>
</div></td>
</tr>
--
Jason Davidson
Juan Stiller wrote:
It might be usefull to see the code you are using to show the query results. --- "Jason T. Davidson" <davidson@aero.und.edu> escribió:I am trying to take information from a database and show that info in a forms list. I have been trying this with while(), but it never comes out and displays correctly. Any help would be appreciated. -- Jason Davidson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php___________________________________ ¡Llevate a Yahoo! en tu Unifón! Ahora podés usar Yahoo! Messenger en tu Unifón, en cualquier momento y lugar. Encontrá más información en: http://ar.mobile.yahoo.com/sms.html