i\'ve been staringly blanky at this error and can\'t seem to know what the problem is.When i run the query i get this error:
unexpected T_ENCAPSED_AND
Use { before $ sign. And also add addslashes function to escape special characters.
$sqlupdate1 = "UPDATE table SET commodity_quantity=".$qty."WHERE user=".addslashes($rows['user'])."'";