Hapsher adlı üyeden alıntı: mesajı görüntüle
Merhaba,
  • utf8_turkish_ci şart değil general da kullanabilirsiniz.
  • veritabanı bağlantı kodlarınızı kontrol edin orası atlanmış olabilir.
  • dosyalarınızı bom olmadan utf-8 olarak düzenleyin
muhtemelen bunlar sorunu çözecektir.
  • utf8_ci olarak değiştirdim
  • kodlar aşağıdaki gibi













<?php

Class Connection{

private $server = "mysql:host=localhost;dbname=admin_siparis";
private $username = "*****************";
private $password = "**********************";
private $options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,PDO::ATTR_DEFAULT_FETCH_MOD E => PDO::FETCH_ASSOC,);
protected $conn;

public function open(){
try{
$this->conn = new PDO($this->server, $this->username, $this->password, $this->options);
return $this->conn;
}
catch (PDOException $e){
echo "There is some problem in connection: " . $e->getMessage();
}

}

public function close(){
$this->conn = null;
}

}

?>