Localhost'ta çalışan sitem nedense bir türlü hosting de çalışmıyor.Local de insert yapıyor.Fakat hosting de insert yapmıyor.Ama update,select vb. herşey çalışıyor.Site linkimi aşağıya bırakıyorum.Kodları da ekliyorum.
Kayıt işlemi dosyası.
Web sitesi : https://www.sitwins.com
if (isset($_POST['kullanicikaydet'])) {
echo $kullanici_adsoyad=htmlspecialchars($_POST['kullanici_adsoyad']); echo "<br>";
echo $kullanici_mail=htmlspecialchars($_POST['kullanici_mail']); echo "<br>";
echo $kullanici_passwordone=trim($_POST['kullanici_passwordone']); echo "<br>";
echo $kullanici_passwordtwo=trim($_POST['kullanici_passwordtwo']); echo "<br>";
if ($kullanici_passwordone==$kullanici_passwordtwo) {
if (strlen($kullanici_passwordone)>=6) {
// Başlangıç
$kullanicisor=$db->prepare("select * from kullanici where kullanici_mail=:mail");
$kullanicisor->execute(array(
'mail' => $kullanici_mail
));
//dönen satır sayısını belirtir
$say=$kullanicisor->rowCount();
if ($say==0) {
//md5 fonksiyonu şifreyi md5 şifreli hale getirir.
$password=md5($kullanici_passwordone);
$kullanici_yetki=5;
//Kullanıcı kayıt işlemi yapılıyor...
$kullanicikaydet=$db->prepare("INSERT INTO kullanici SET
kullanici_adsoyad=:kullanici_adsoyad,
kullanici_mail=:kullanici_mail,
kullanici_gsm=:kullanici_gsm,
kullanici_password=:kullanici_password,
kullanici_referans=:kullanici_referans,
kullanici_yetki=:kullanici_yetki
");
$insert=$kullanicikaydet->execute(array(
'kullanici_gsm' => $_POST['kullanici_gsm'],
'kullanici_referans' => $_POST['kullanici_referans'],
'kullanici_adsoyad' => $kullanici_adsoyad,
'kullanici_mail' => $kullanici_mail,
'kullanici_password' => $password,
'kullanici_yetki' => $kullanici_yetki
));
if ($insert) {
header("Location:../uye/kayitol.php?durum=loginbasarili");
} else {
header("Location:../uye/kayitol.php?durum=basarisiz");
}
} else {
header("Location:../uye/kayitol.php?durum=mukerrerkayit");
}
// Bitiş
} else {
header("Location:../uye/kayitol.php?durum=eksiksifre");
}
} else {
header("Location:../uye/kayitol.php?durum=farklisifre");
}
}Veritabanı bağlantısı$database_adi="websites_data";
$user="websites_user";
$pass="*LgTDaG31y{3";
//Aşağıya kesinlikle dokunma...
$host="mysql:host=localhost;dbname=$database_adi;charset=utf8";
try {
$db=new PDO($host, $user, $pass);
//echo "veritabanı bağlantısı başarılı";
}
catch (PDOExpception $e) {
echo $e->getMessage();
}Nedeni nedir?Nerede hata yapıyorum
