if($submit)
{
$name = $_COOKIE["name"];
$db = mysql_connect("secret", "secret", "secret");
mysql_select_db("secret",$db);
$sql = "UPDATE users SET (email, age, sex, loc, aim, msn, icq, yim, descrip) VALUES (\"$nmail\", \"$nage\", \"$nsex\", \"$nloc\", \"$naim\", \"$nmsn\", \"$nicq\", \"$nyim\", \"$ndescrip\") WHERE name = \"$name\"";
$result = mysql_query($sql, $db);
}
trying to get it to change db entries after a form is submitted with the variables listed in there, i don't know what im doing wrong.
thanks in advance for any suggestions