Question: how to pass dropdown selected value to database in php?
Answer: The most traditional of which is to have the drop down on a form. Then when the form is submitted - using the submit button PHP can pick up the value using the ID/Name of the drop down control. $lcSelectedValue = $_POST['main_select'] ; // if you want to use this as a number then wrap it in intVal($_POST[...])