I'm trying to update multipule rows (same col).
While I understand that I need to use a loop to run the command over again I seem to get lost when it comes to adding mysql results to the mix. I'm still newbie and I might be overlooking something very simple so please be kind. I'm eager to learn.
There are two rows with BuyID of '2' and they both need Item status changed to '2'
mysql_query(SELECT ItemID, ItemStatus FROM Items where BuyID='2');
$result = mysql_query($sql_query) or die ("Query failed");
$row = mysql_fetch_array($result);
UPDATE Items set ItemStatus='2' WHERE ItemID='$row[ItemID]';