$pos = $_POST['pos'];
$played = $_POST['played'];
$won = $_POST['won'];
$drawn = $_POST['drawn'];
$lost = $_POST['lost'];
$goalsfor = $_POST['goalsfor'];
$goalsag = $_POST['goalsag'];
$goaldif = $_POST['goalsdif'];
$points = $_POST['points'];
if (mysqli_query($db,"UPDATE division2 SET Pos ='".$pos."', played ='".$played."', won ='".$won."', drawn ='".$drawn."', lost ='".$lost."', goalsfor ='".$goalsfor."', goalsag ='".$goalsag."', goalsdif ='".$goaldif."', points ='".$points."', WHERE team = Treaty Celtic") === true) {
echo '<script language="javascript">';
echo 'alert("Row Successfully Inserted")';
echo '</script>';
include("index.html");
This is what i have so far but i keep getting "error inserting row" I want to update the entire row from a user input using $_Post in php.