Ok, this is a simple problem, but for some reason I can't manage to figure it out....school burnout, maybe?
Anyway, I have something along the lines of this:
while ($row = mysql_fetch_array($result)){
?>
<tr>
<td class="FormSimpleListCell" width="25" align="center" valign="middle"><? echo("$row[serial]") ?></td>
<td class="FormSimpleListCell" width="" align="center" valign="middle"><? echo("$row[lot]") ?></td>
<td class="FormSimpleListCell" width="" align="center" valign="middle"><? echo("$row[something]"); ?></td>
<td class="FormSimpleListCell" width="" align="center" valign="middle"><input class="FormItemTextbox" type="text" name="new_lot[]" size="13" maxlength="12"></td>
<td class="FormSimpleListCell" width="" align="center" valign="middle"><input type="checkbox" name="serials[]" value="<? echo("$row[serial]"); ?>">
</tr>
<?
}
So basically I'm just echoing selected rows from the DB. Well, that next to last table cell will be requiring some user input as it will update the lot number in the system and the last cell, a checkbox, will be sending the serial numbers of the objects to be updated.
What I have no idea how to do is to make this into one array so that I can display all the info....so that the first object with serial A will be paired with it's appropriate lot #. I was thinking a multidimensional array, but I haven't the slightest idea how to create one under these circumstances.
Should I not rely on the system to number the elemants in the array and create a loop to manually number them all?
HELP!