I am trying to extract the value of a form so that it is added to a value of a row in a table in mysql, by means of a string that extracts the value of a query and this value is used to update the information of the record, but it does not. What could be the error?
$SQL="select Cantidad + ".$_POST['Cantidad']." from gasolina where Gasolina = \"".$_POST['Gasolina']."\"";
$resultado = mysql_query($SQL, $idconexion);
$fila = mysql_fetch_row($resultado);
$SQL="UPDATE gasolina SET Cantidad=\"".$fila[0]."\" WHERE where Gasolina = \"".$_POST['Gasolina']."\"";
}