<?
include"includes/config.php";
$sql_query = "SELECT * from games WHERE gamestatus = 1 ORDER BY timesplayed DESC LIMIT 2,1";
$result = mysql_query($sql_query);
if(mysql_num_rows($result))
{
while($row = mysql_fetch_array($result))
{
$mostpopulargamedesc = $row[gamedesc];
$mostpopulargamefile = $row[gamefile];
$mostpopulargameresim = $row[gameicon];
$mostpopulargametitle = $row[gametitle];
$mostpopulargametitle = stripslashes($mostpopulargametitle);
$mostpopulargameid = $row[gameid];
$mostpopulartimesplayed = $row[timesplayed];
$sepopular = str_replace (" ","-",$mostpopulargametitle);
$sepopular = str_replace ("'","_",$sepopular);
if ($rewrite != 1)
{
include"include.php";
}
else
{
include"include2.php";
}
}
}
else
{
echo '<td align="left" bordercolor="#000000">';
echo '<i>Oyun Yok</i>';
echo '</td></tr>';
}
?>