Forum Moderators: coopster

Message Too Old, No Replies

php combo box populates data from mysql

combo box

         

JuicyScript

6:55 am on Oct 30, 2009 (gmt 0)

10+ Year Member



ok i have the script below which fetch data from mysql...how will i resubmit it to another table since it does not have a combo box name
<?php
while ($row = mysql_fetch_array($query)) {
echo '<select name="items">';
while ($row = mysql_fetch_array($query)) {
echo '<option value="',$row['options'],'">',$row['options'],'</option>';
//echo '<option value="',$row['username'],'">',$row['username'],'</option>';
}
echo '</select>';
}
?>

daveginorge

12:49 pm on Nov 4, 2009 (gmt 0)

10+ Year Member



how will i resubmit it to another table since it does not have a combo box name

Not sure what you mean here.

1. Resubmit the data to another table in the database
2. Output the data in a table on the web page and the combobox.