I am new to javascript. I am trying to create a drop box on a php form that gets its information from a mysql table. I want it to show two columns from the same table. Can someone give me an example of this or point me in the right direction?
you are implying you want to use javascript which in this case means using AJAX.
but in any case you will need server side scripting, like php or asp (with or without using javascript to call it) to extract the data out of the database table.
The w3schools php database tutorials should help you get started.