I'm having a little trouble understanding something that I've been working on.
I have a table with countries and their associate dailing codes in rows (about 240) and I'm outputting them to the page in a loop to be placed in a drop down list. In my form, I am needing the list 2x so I figured, just copy and paste the same code in the other location. Problem is, the first location renders perfectly, the second doesn't render at all. I wondering if it has to do with the connections that MySQL can have at one time. Here's the code for the loop:
<td><select name="faxcode" class="normal" id="faxcode" style="width: 196px;">
<?php do { ?>
<option value="<?php echo $row_Recordset2['dcode']?>"
<?php if (!(strcmp($row_Recordset2['dcode'],
$row_Recordset1['dcode']))) ?>>
<?php echo $row_Recordset2['country']?>
</option>
<?php } while ($row_Recordset2 = mysql_fetch_assoc($Recordset2)); ?>
</select>
I'm not sure why the first list would show up but the second list is just one blank line.