i need to insert session varibale to insert query near WHERE clause
but when i execute this error is showing
*You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE *
$sql = "INSERT INTO profiles WHERE profile_login_id= $profile_login_id (firstname,middlename,lastname,gender,age,maritial_status,children,how_many_child,location,height )
VALUES ('$firstname','$middlename','$lastname','$gender','$age','$mstatus','$children','$howmanychild','$fcitizenship','$height')";
if(mysqli_query($conn, $sql)){
echo "Records inserted successfully.";
} else{
echo "ERROR: Could not able to execute $sql. " . mysqli_error($conn);
}