if(!isset($_SESSION['eposta'])){
echo "





Bu sayfayı görme yetkiniz yok.




";
header("location:index.php");
exit;
}
?>
$id = "id";
if($id){

if($_POST){

$std = $_POST["std_id"];
$adi = $_POST["adi"];

$update = $db->prepare("update uyeler set

std_id=?,
adi=?
where id=?");

$ok = $update->execute(array($std,$adi,$id));
if($ok){
echo "<script>window.location = 'profil.php'</script>";
}else {

echo '
Profil güncelleme hatası.
';
}
}
?>


















Üstteki kodlara sessionlar geliyor. Fakat güncelleme yapamıyorum. Yardımlarınızı bekliyorum.