function get_populer_tags(){
$sorgu = db()->query( "select tag_id, count(*) from post_tags tag_id order by count(*) desc limit 0,5" );
$tagid = $sorgu->fetchAll(PDO::FETCH_OBJ);
foreach ($tagid as $tagname) {
$sorgu2 = db()->query("select * from tags where id = '$tagname->tag_id' ");
return $tagisim = $sorgu2->fetch(PDO::FETCH_LAZY);
}
}









Nerde hata yaptım acaba hsntngr