Populate HTML form drop down from database


I have been trying to populate a drop down menu by pulling the needed information from a database through php and mysql however I haven't been able to achieve this and so far when I run it I just get a drop down box with nothing inside of it. Any help on this would be great as I am really stuck as to where I am going wrong.


I have connected to the database fine and can pull information down from it to populate a table for example however the drop down menu just isn't working.

NB: I need the value to be set to the name that I am also populating the drop down menu with.


your code works for me