$sor=$db->prepare("SELECT * from mak_begen where user_id=:uid and icerik_id=:pid");
$sor->execute(array('pid'=>@$_GET['icerik_id'],'uid'=>$user_id));
$say = $sor->fetchColumn();
$sor = $sor->fetch();
if ($sor==TRUE) { ?>
mysql_num_rows pdo kullanımı
$sor=$db->prepare("SELECT * from mak_begen where user_id=:uid and icerik_id=:pid");
$sor->execute(array('pid'=>@$_GET['icerik_id'],'uid'=>$user_id));
$say = $sor->fetchColumn();
if ($say==1) { ?>