I need to change the name of each row 'name' for each radio set in my while loop. I'd like to use incrementing numbers for the names though. So instead of the name 'price' which currently exists, the first record would be 1, 2, 3, and so forth. I know I probably have to use a for each statemetn but not sure how to set it up.
while ($row2=mysql_fetch_array($query2)){
echo "<tr bgcolor=\"#E9F2DB\"><td class=\"body1\">$row2[name]</td><td class=\"body1\"><a href='catalog.php?remove=$row2[id]'><b>Delete</b></a></td>
<td class=\"body1\"><input name=\"price\" type=\"radio\" value=\"$row2[price]\" onclick=\"viewPrice()\" checked>Non-Exclusive: $row2[price] <input name=\"price\" type=\"radio\" value=\"$row2[eprice]\"onclick=\"viewPrice()\" >Exclusive: $row2[eprice] </td></tr>";
}