Maybe you can clarify some things for me. Does this query only return one row?
$contlist=mysql_query(
"SELECT * FROM inven WHERE upc='$_POST[upc]'");
If so, then the $quan1 variable contains the current quantity, and you just want to increase this by 10, right? In which case, your update query would simply be:
$sql = mysql_query("UPDATE inven SET quant='" . ($quan1 + intval($_POST[quan])) . "')
Something along those lines.