require_once("includes/functions.php");
//DBConnect($ChartsDB);
//require_once("update.php");
WriteHeader("YouthFire.com - The Charts");
print "Find out what's hot and what's not. Every single week we'll have the most up to date top Christian Music Charts right here to keep you in the know!
";
//OUTPUT
print "";
$Contemporary = GetChart(1);
//print "Top 10 Contemporary Songs";
$title = "Top 10 Contemporary Songs";
WriteChart($title, $Contemporary);
$Rock = GetChart(2);
//print "Top 10 Rock Songs";
$title = "Top 10 Rock Songs";
WriteChart($title, $Rock);
$CHR = GetChart(3);
//print "Top 10 Christian Hit Radio Songs";
$title = "Top 10 Christian Hit Radio Songs";
WriteChart($title, $CHR);
$Inspirational = GetChart(4);
//print "Top 10 Inspirational Songs";
$title = "Top 10 Inspirational Songs";
WriteChart($title, $Inspirational);
$HipHop = GetChart(5);
//print "Top 10 Urban/Rap/Hip-Hop Songs";
$title = "Top 10 Urban/Rap/Hip-Hop Songs";
WriteChart($title, $HipHop);
$Gospel = GetChart(6);
//print "Top 10 Internet Radio Songs";
$title = "Top 10 Internet Radio Songs";
WriteChart($title, $Gospel);
$query = "SELECT `last_update` FROM `type` WHERE `id`=1";
$result = mysql_query($query);
if ($result)
{
$lastUpdate = mysql_result($result, 0);
$date = date("m/d/Y", $lastUpdate);
print "Updated $date";
}
print "";
WriteFooter();
?>