I want to update a column using 3 variables but I dont know the syntax. My code goes like this:
$var1 = $_POST['val1'];
$var2 = $_POST['val2'];
$var3 = $_POST['val3'];
$sqlupdate="UPDATE table1 SET col1= $var1.' '.$var2.'
'.var3";
If(mysqli query($conn, $sqlupdate){
echo "updated";
}