+
+ prepare("UPDATE usersinfo set
+ userUsername=:userUsername,
+ userName=:userName,
+ userSurname=:userSurname,
+ userEmail=:userEmail,
+ userUsername=:userUsername,
+ userFlatno=:userFlatno,
+ userPassword=:userPassword,
+ userGSM=:userGSM
+
+ where userID={$_SESSION['userID']}
+ ");
+
+ $insert = $kaydet->execute(array(
+
+ 'userName' => $_POST['userName'],
+ 'userSurname' => $_POST['userSurname'],
+ 'userEmail' => $_POST['userEmail'],
+ 'userUsername' => $_POST['userUsername'],
+ 'userFlatno' => $_POST['userFlatno'],
+ 'userPassword' => md5($_POST['userPasswordNEW']),
+ 'userGSM' => $_POST['userGSM']
+
+ ));
+ if ($insert) {
+ //echo "kayıt başarılı";
+ Header("location:account.php?update=ok&bilgilerim_id=$bilgilerim_id");
+ exit;
+ } else {
+ //echo "kayıt başarısız";
+ Header("Location:account.php?update=no&bilgilerim_id=$bilgilerim_id");
+ exit;
+ }
+ } else {
+ echo "
Old Password is WRONG
";
+ }
+ }
+ ?>
+
Update is Successful
";
+ } elseif ($_GET['update'] == "no") {
+ echo "
Update is Failed
";
+ }
+ }
+ ?>
+
+