On my site ive got a update profile , when im trying to update the username they are logged in with im getting the following error??
CODE::
$sql4 = "UPDATE members SET username, password, email, first, last, phone WHERE username=$_SESSION['username']
VALUES ('".$username."','".$password."','".$email."','".$first."','".$last."','".$phone."')";
$res4 = mysql_query($sql4) or die(mysql_error());
ERROR::
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 ' password, email, first, last, phone WHERE username=aaaa VALUES ('aq' at line 1