Hi,
IF you have it, you SHOULD use a unique identification for each product, e.g., an autoincrement colum.
THis should be used to identify your product to update.
Ayyway..
this query:
$query = "UPDATE inv SET item='$item', size='$size', qty='$qty' WHERE item != '$olditem', size != '$oldsize', qty != '$oldqty' ";
should be:
$query = "UPDATE inv SET item='$item', size='$size', qty='$qty' WHERE item = '$olditem', size = '$oldsize', qty = '$oldqty' ";
the where statement tells the database which record to update. So you are trying to update the oldproduct, with old specifications, and ten set them to the new specs.