Jsut a guess...
Your row has a capital 'A' in the SQL statement, and a lower case 'a' in 
teh $row[] call..

does that matter?

"Larry Sandwick" <[EMAIL PROTECTED]> 
22/01/2004 15:46
Please respond to


[PHP-DB] Drop down box NOT populated

Can anyone tell me what I am missing here, 
The Select statement does not populate my drop down window? 

My drop down box is empty !
include '../db.php';
$how = mysql_query("SELECT count(distinct(account)) from Backlog") or die 
("Something bad happened: " . mysql_error()); 
$how_many = mysql_result($how, 0);
echo "<h3>$how_many Accounts to pick from !!!</h3>";
$sql = mysql_query("SELECT distinct(Account) FROM Backlog")or die 
("Something bad happened here: " . mysql_error()) ; 
echo "<select name=\"account\">\n";
echo "<option>\n";
while ($row = mysql_fetch_array($sql))
      echo ' <option 
echo "</select>\n";
[end snip]
Larry Sandwick
Sarreid, Ltd.
Network/System Administrator
phone: (252) 291-1414 x223
fax      : (252) 237-1592

The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.

Reply via email to