I want my dropdown-textbox-select(I'm confused what it really is) to query all the data in the appropriate table I want to display. But it is displaying all the data with separated dropdown-textbox-select. I just want the data to be inside. Here's what I'm doing so far.
<?php
$sel_admin = "SELECT * FROM author";
$rs_admin = mysql_query($sel_admin);
while($row = mysql_fetch_array($rs_admin))
{
echo '<select class="form-control">';
echo" <option value='volvo'>" . $row['author_firstname'] . $row['author_lastname'] ."</option>";
echo'</select>';
}
?>
PS. If the user click submit, I want the author_id to be save, instead of the name. How can this be also?