• 18-01-2017, 09:15:58
    #1
    Arkadaşlar merhaba,
    Benim oyun sitemde kullanıcı yaptığında aşağıdaki gibi hatalar oluşuyor. Nasıl çözebilirim.
    [18-Jan-2017 06:05:54 UTC] PHP Warning:  mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/sampiyonoyun/public_html/wp-content/themes/sampiyonoyun_v2/footer.php on line 321
    [18-Jan-2017 06:05:54 UTC] PHP Warning:  mysql_real_escape_string(): A link to the server could not be established in /home/sampiyonoyun/public_html/wp-content/themes/sampiyonoyun_v2/footer.php on line 321
    [18-Jan-2017 06:05:54 UTC] PHP Warning:  mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/sampiyonoyun/public_html/wp-content/themes/sampiyonoyun_v2/footer.php on line 323
    [18-Jan-2017 06:05:54 UTC] PHP Warning:  mysql_real_escape_string(): A link to the server could not be established in /home/sampiyonoyun/public_html/wp-content/themes/sampiyonoyun_v2/footer.php on line 323
    [18-Jan-2017 06:05:54 UTC] PHP Warning:  mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/sampiyonoyun/public_html/wp-content/themes/sampiyonoyun_v2/footer.php on line 325
    [18-Jan-2017 06:05:54 UTC] PHP Warning:  mysql_real_escape_string(): A link to the server could not be established in /home/sampiyonoyun/public_html/wp-content/themes/sampiyonoyun_v2/footer.php on line 325
    [18-Jan-2017 06:05:54 UTC] PHP Warning:  mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/sampiyonoyun/public_html/wp-content/themes/sampiyonoyun_v2/footer.php on line 327
    [18-Jan-2017 06:05:54 UTC] PHP Warning:  mysql_real_escape_string(): A link to the server could not be established in /home/sampiyonoyun/public_html/wp-content/themes/sampiyonoyun_v2/footer.php on line 327
    Tema içerisinde ki kod ksımı
    $formGoster = true;
    
    			$kayitDevam = true;		
    
    			$aye_username = mysql_real_escape_string($_POST['username']);
    
    			$aye_sifre = mysql_real_escape_string($_POST['sifre1']);
    
    			$aye_sifre2 = mysql_real_escape_string($_POST['sifre2']);
    
    			$aye_mail = mysql_real_escape_string($_POST['mail']);
  • 18-01-2017, 10:05:26
    #2
    vermiş olduğun kodlarda mysql kullanmışsınız fakat sistemin veritabanı baglantısı nasıl mysqli mi pdo mu buraya dikkat etmen gerekli çünkü mysql baglantısı yapışmamış olduğundan bu hatayı alıyorsunuz.
  • 18-01-2017, 15:06:59
    #3
    Erden35 adlı üyeden alıntı: mesajı görüntüle
    vermiş olduğun kodlarda mysql kullanmışsınız fakat sistemin veritabanı baglantısı nasıl mysqli mi pdo mu buraya dikkat etmen gerekli çünkü mysql baglantısı yapışmamış olduğundan bu hatayı alıyorsunuz.
    teşekkürler. Tekrar bi eski kodları inceleyeyim.