forked from cihanmehmet/Ziyaretci-Uyelik-Girisi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uyeguncelle.php
54 lines (51 loc) · 1.9 KB
/
uyeguncelle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
include 'ayar.php';
global $db;
$id =$_GET["id"];
$kullaniciadi =$_POST["kullaniciadi"];
$parola =$_POST["parola"];
$adisoyadi =$_POST["adisoyadi"];
$cinsiyet =$_POST["cinsiyet"];
$email =$_POST["email"];
if(($kullaniciadi=="") || ($adisoyadi==""))
{
echo "<body topmargin=\"100\"><center><b>Lütfen Kullanıcı Adı ve Adı Soyadı Kısmını Doldurun</b></center>\n";
echo "<div style=\"height:600px;\"></div>\n";
header("Refresh:2; url=index.php?Git=UyeListesi");
}
else if($parola=="")
{
$guncelle=$db->prepare("UPDATE uyeler SET kullaniciadi='$kullaniciadi',adisoyadi='$adisoyadi',email='$email',cinsiyet='$cinsiyet' WHERE id='$id' ");
$guncelle->execute();
if($guncelle)
{
//var_dump($guncelle->errorinfo());
echo "<body topmargin=\"100\"><center><b>Üye Güncellendi</b></center>\n";
echo "<div style=\"height:600px;\"></div>\n";
header("Refresh:2; url=index.php?Git=UyeListesi");
}
else
{
echo "<body topmargin=\"100\"><center><b>HATA Veriler Güncellenemedi</b></center>\n";
echo "<div style=\"height:600px;\"></div>\n";
header("Refresh:2; url=index.php?Git=UyeListesi");
}
}
else
{
$guncelle=$db->prepare("UPDATE uyeler SET kullaniciadi='$kullaniciadi',adisoyadi='$adisoyadi',parola='$parola',email='$email',cinsiyet='$cinsiyet' WHERE id='$id' ");
$guncelle->execute();
if(isset($guncelle))
{
echo "<body topmargin=\"100\"><center><b>Üye Güncellendi</b></center>\n";
echo "<div style=\"height:600px;\"></div>\n";
header("Refresh:2; url=index.php?Git=UyeListesi");
}
else
{
echo "<body topmargin=\"100\"><center><b>HATA Veriler Güncellenemedi</b></center>\n";
echo "<div style=\"height:600px;\"></div>\n";
header("Refresh:2; url=index.php?Git=UyeListesi");
}
}
?>