Let me preface this question by saying that I haven't tried to connect to a db in almost a year and have hardly been doing any php.
With that out of the way, I'm ashamed to admit it, but I can't find my results. I want to dynamically populate a select list. I'd like to know if anyone sees what this bonehead (me) is missing. Here's my code:
The code snippet you've shown doesn't have an opening <select> tag.
If you do have an opening <select> tag higher up, then anything you output between the opening & closing <select> tags will NOT be visible on the screen unless it's inside an <option> tag. For example:
Note I used mysql_fetch_assoc() not mysql_fetch_array(). mysql_fetch_assoc() allows you to refer to column names by name & will survive a DB column re-ordering.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.