Forums
This topic is locked
DW8 dynamic menu shows only one item PLEASE HELP o
Posted 15 Dec 2006 17:14:13
1
has voted
15 Dec 2006 17:14:13 Max Newbie posted:
Hi,I have DW8, mysql, php4.2.3(clients). I am creating an insert record form with a dynamic menu in it. I am using a recordset, rs tests fine. but my list only shows first record. I echoed my row count, 23 there. Not sure why. PLEASE HELP on day 2 of trying
<pre id=code><font face=courier size=2 id=code><tr valign="baseline">
<td nowrap align="right">Color:</td>
<td><select name="Color">
<?php
do {
?><option value="<?php echo $row_rsColorCat['colorName']?>"><?php echo $row_rsColorCat['colorName']?></option>
<?php
} while ($row_rsColorCat = mysql_fetch_assoc($rsColorCat));
$rows = mysql_num_rows($rsColorCat);
if($rows > 0) {
mysql_data_seek($rsColorCat, 0);
$row_rsColorCat = mysql_fetch_assoc($rsColorCat);
}
?>
</select>
</td> </font id=code></pre id=code>