$sql = mysql_query('select oy from rating');
while($veri = mysql_fetch_assoc($sql))
{
echo $veri['oy'];
}