Uğraşmana gerek yok
https://github.com/ThingEngineer/PHP...Database-Class
Veritabanı bağlantısı:
require_once('PDODb.php');
$dbh = new PDODb([
'type' => 'mysql',
'host' => 'localhost',
'username' => 'root',
'password' => '',
'dbname'=> 'idepex',
'charset' => 'utf8'
]);Veri çekme kodu:
$dbh->where("article_slug", $slug);
$articleRow = $dbh->getOne("article");