This is an update procedure where the user can change things like the time, or the field number. The gameID is the key and I thought I would be able to attach it to the array in the following fashion. It may be hard to see but the quotes are single quote, double quote and a period. The tail end is period, double quote, single quote.
print "<input type='text' name='time_ud['" . $row['gameID'] ."']
value='" . $row['time'] ."'></td><td>";
print "<input type='text' name='field_ud['" . $row['gameID'] ."']
value='" . $row['field'] ." '></td><td>";
But when I run a print_r, all I get is the very last record. What am I missing?
Any advice would be gratefully appreciated.