<?php
function takip_edilen_sayisi($id)
{
try
{
$db = new PDO("mysql:host=localhost;dbname=deukampus", "root", "");
}
catch ( PDOException $e )
{
print $e->getMessage();
}
$query = $db -> prepare("SELECT COUNT(*) FROM takiplesme where takip_eden = '{$id}'");
$query->execute();
$sayi = $query->fetchColumn();
return $sayi;
}
?>