I have a database class that I wrote previously and have since improved. It is simple and easy to use.
You can download the class from here and get detailed information about its usage. To give a few examples;
To add data
require "database.class.php";
$ekle = Database::insert("gonderiTablosu", array(
"baslik" => "Gönderi Başlığı",
"icerik" => "<p>Gönderi içeriği</p>"
));
if ($ekle) {
echo $ekle . " ID'li gönderi eklenmiştir";
}
To list data
require "database.class.php";
$gonderiler = Database::getAll("gonderiTablosu", "WHERE durum=?", array("YAYINDA"));
foreach($gonderiler as $gonderi) {
echo $gonderi->baslik;
}
I hope it helps many people as much as it helped me.
Good luck.