Add items from database to listbox

I have a mysql database and I want to put each field’s data in a listbox. all I can think about is that I need to have a SQL query to get the data but how??
help me pls… thanks.

You will need server side processing to access the database - either before the web page loads or called from Ajax.