pdo dan fazla bilgim yok ama php olsa yapmasi basit ama asagida verdigim gibi deneyin olmasi gerek
<?php
try {
$baglanti = new PDO("mysql:host=localhost;dbname=kisi", "root", "");
$baglanti->exec("SET NAMES utf8");
$baglanti->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$username = $_POST["username"];
$eposta = $_POST["eposta"];
$sonuc = $baglanti->exec("UPDATE uyeler SET username = '$username', eposta = '$eposta' WHERE id_hesap = 1");
if ($sonuc > 0) {
echo $sonuc . " kayıt güncellendi.";
} else {
echo "Herhangi bir kayıt güncellenemedi.";
}
} catch (PDOException $e) {
die($e->getMessage());
}
$baglanti = null;
?>