index.php
require "oylama.php";
require "baglanti.php";
$oylama=new oylama();
$baglanti=new baglanti();
$id=intval($_GET["id"]);
$sorgu=$baglanti->db->prepare("select * from konular where id=:id");
$sorgu->bindParam(":id",$id,PDO::PARAM_INT);
$sorgu->execute();
$veri=$sorgu->fetch(PDO::FETCH_ASSOC);
echo $veri["isim"];
echo "
";
echo $veri["yazi"];
foreach ($oylama->oylamaListesi as $key => $value) {
echo ''.$value.'';
}