Well, this is one loopy bit of code:
for ($i=1; $i<8; $i++){
echo "<td width=''><select name = 'AM[$i][]' class='style2'>
<option value='0:00'>12:00 AM</option>
<option value='0:00'>12:00 AM</option>
}
I assume at some point, you want to CLOSE the select, right?
echo "</select></td>"
??
Suppose your code is:
for ($i=1; $i<8; $i++){
echo "<td width=''><select name = 'AM[$i][]' class='style2'>
<option value='0:00'>12:00 AM</option>
<option value='0:00'>12:00 AM</option>
</select></td>";
}
You will have created 8 different drop down menus in 8 different table cells. Each dropdown will have 2 selections, and each selection will be '12:00AM
I really don't know what your problem is? Since the only possible choice offered to the user is 12.00AM, why don't you just populate your database directly?
Why even bother with dropdown menus?