I have the following code :
$userpass = $row->userpass;
$gesamtpass = $pass.$chili;
$pwdata = mysql_query("SELECT MD5('".$gesamtpass."') AS newpass");
$pwk = mysql_fetch_object($pwdata);
$pwkey = $pwk->newpass;
$_POST["email"] = $email;
$_POST["fbuid"] = $fbuid;
if ($userpass == $pwkey){
$result_update = mysql_query("UPDATE member SET (fbuid = '".mysql_real_escape_string($_POST["fbuid"])."') WHERE email = '".mysql_real_escape_string($_POST['email'])."'") or die("not possible");}
I don´t get this code work updating my data.
This code does what you want to do in a tidier way. It also outputs some useful error messages when things go wrong. Obviously, you should not output these directly to the user in production, but it will help you debug the problem while developing.