0){ while ($news1 = mysql_fetch_assoc($s1news)){ $title = $news1['articletitle']; $articlep1 = $news1['articlep1']; $articlep2 = $news1['articlep2']; $articlep3 = $news1['articlep3']; $movielink = $news1['movielink']; $picture1 = $news1['picture1']; $picture2 = $news1['picture2']; $picture3 = $news1['picture3']; $storyyear = $news1['year']; $eventnaming = $news1['eventname']; print "
"; print "

$title

"; print "

$articlep1

"; if ($picture1 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep2

"; if ($picture2 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep3

"; if ($picture3 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$movielink

"; if ($eventnaming == "General"){ echo ""; echo ""; echo ""; echo ""; echo "
View Full Standings
"; echo "
"; } else { echo ""; echo ""; echo ""; echo ""; echo "
$eventnaming Final Standings
"; echo "
"; } } } else { print "
"; } $s2news= mysql_query("SELECT * FROM `s2racenews` ORDER BY `articleid` DESC LIMIT 1"); if (mysql_num_rows($s2news) > 0){ while ($news2 = mysql_fetch_assoc($s2news)){ $title2 = $news2['articletitle']; $articlep12 = $news2['articlep1']; $articlep22 = $news2['articlep2']; $articlep32 = $news2['articlep3']; $movielink2 = $news2['movielink']; $picture12 = $news2['picture1']; $picture22 = $news2['picture2']; $picture32 = $news2['picture3']; $storyyear2 = $news2['year']; $eventnaming2 = $news2['eventname']; print "
"; print "

$title2

"; print "

$articlep12

"; if ($picture12 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep22

"; if ($picture22 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep32

"; if ($picture32 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$movielink2

"; if ($eventnaming2 == "General"){ echo ""; echo ""; echo ""; echo ""; echo "
View Full Standings
"; echo "
"; } else { echo ""; echo ""; echo ""; echo ""; echo "
$eventnaming2 Final Standings
"; echo "
"; } } } else { print "
"; } $s3news= mysql_query("SELECT * FROM `s3racenews` ORDER BY `articleid` DESC LIMIT 1"); if (mysql_num_rows($s3news) > 0){ while ($news3 = mysql_fetch_assoc($s3news)){ $title3 = $news3['articletitle']; $articlep13 = $news3['articlep1']; $articlep23 = $news3['articlep2']; $articlep33 = $news3['articlep3']; $movielink3 = $news3['movielink']; $picture13 = $news3['picture1']; $picture23 = $news3['picture2']; $picture33 = $news3['picture3']; $storyyear3 = $news3['year']; $eventnaming3 = $news3['eventname']; print "
"; print "

$title3

"; print "

$articlep13

"; if ($picture13 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep23

"; if ($picture23 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep33

"; if ($picture33 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$movielink3

"; if ($eventnaming3 == "General"){ echo ""; echo ""; echo ""; echo ""; echo "
View Full Standings
"; echo "
"; } else { echo ""; echo ""; echo ""; echo ""; echo "
$eventnaming3 Final Standings
"; echo "
"; } } } else { print "
"; } $s4news= mysql_query("SELECT * FROM `s4racenews` ORDER BY `articleid` DESC LIMIT 1"); if (mysql_num_rows($s4news) > 0){ while ($news4 = mysql_fetch_assoc($s4news)){ $title4 = $news4['articletitle']; $articlep14 = $news4['articlep1']; $articlep24 = $news4['articlep2']; $articlep34 = $news4['articlep3']; $movielink4 = $news4['movielink']; $picture14 = $news4['picture1']; $picture24 = $news4['picture2']; $picture34 = $news4['picture3']; $storyyear4 = $news4['year']; $eventnaming4 = $news4['eventname']; print "
"; print "

$title4

"; print "

$articlep14

"; if ($picture14 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep24

"; if ($picture24 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep34

"; if ($picture34 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$movielink4

"; if ($eventnaming4 == "General"){ echo ""; echo ""; echo ""; echo ""; echo "
View Full Standings
"; echo "
"; } else { echo ""; echo ""; echo ""; echo ""; echo "
$eventnaming4 Final Standings
"; echo "
"; } } } else { print "
"; } $s5news= mysql_query("SELECT * FROM `s5racenews` ORDER BY `articleid` DESC LIMIT 1"); if (mysql_num_rows($s5news) > 0){ while ($news5 = mysql_fetch_assoc($s5news)){ $title5 = $news5['articletitle']; $articlep15 = $news5['articlep1']; $articlep25 = $news5['articlep2']; $articlep35 = $news5['articlep3']; $movielink5 = $news5['movielink']; $picture15 = $news5['picture1']; $picture25 = $news5['picture2']; $picture35 = $news5['picture3']; $storyyear5 = $news5['year']; $eventnaming5 = $news5['eventname']; print "
"; print "

$title5

"; print "

$articlep15

"; if ($picture15 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep25

"; if ($picture25 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$articlep35

"; if ($picture35 == "images/bg-trans.png") { print "\"picture\""; } else { print "\"picture\""; } print "

$movielink5

"; if ($eventnaming5 == "General"){ echo ""; echo ""; echo ""; echo ""; echo "
View Full Standings
"; echo "
"; } else { echo ""; echo ""; echo ""; echo ""; echo "
$eventnaming5 Final Standings
"; echo "
"; } } } else { print "
"; } ?>