I apologize if this question isn't asked well - first post on here. Very new with PHP and SQL in general.
I have a table displayed using a PHP foreach loop.
query:
SELECT * FROM ftu_inventory WHERE issuedto='$_GET[id]' ORDER BY item ASC
(using id 134 as example - partid is a unique primary key auto-assigned when the line is inserted)
| partid | item | issuedto | status |
|---|---|---|---|
| 40 | Beret | 134 | On Hand |
| 16 | Boots | 134 | On Hand |
| 72 | Jacket | 134 | On Hand |
| 250 | Jacket | 134 | On Hand |
| 103 | Pants | 134 | On Hand |
| 240 | Pants | 134 | On Hand |
'Status' is displayed using a drop-down menu. I would like to have a button at the top of the badge to save all displayed rows with the new drop-down values in that column.
I know I could have a save button included in each row as part of the foreach loop, but there has to be a more effective way, no?