I got an error of unexpected " in the code shown below
Tried to sum columns and then update each row in a SUM-Cell as I run the code.
$QQ = "UPDATE T_IMB19 SET SUM1=$SUMA, SUM2=$SUMB, TOTAL=$SUMTOT WHERE Navn=$rows['Navn']";
mysqli_query($con,$QQ);
I have echo on the SUMA
, SUMB
and SUMTOT
and they act nicely, but the update doesn't work.
Error : "Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)"