Ok sorry I just realized what you are doing here...
The reason it's only updating the first record is because you are only telling it to update the first record
When you output the input fields, you are only giving them one name and repeating it over and over.
For example
<input type=text name=lotshow value="<?php echo "$row[lotshow]";?>" size=7>
The name is 'lotshow'... then the next inventory item has the same exact name.
What you need to do is create an array of variables like this:
<input type=text name=lotshow[0] value="" size=7>
<input type=text name=lotshow[1] value="" size=7>
<input type=text name=lotshow[2] value="" size=7>
Instead of:
<input type=text name=lotshow value="" size=7>
<input type=text name=lotshow value="" size=7>
<input type=text name=lotshow value="" size=7>
Then loop these variables in your UPDATE query
Does this make sense? I'll try to get you a better example.....after lunch 😉