Hits

Hit Leaders

“);
echo(“

“);
echo(“

All Time

“);

$get_Hit_leaders=$conn->query(“SELECT P.nameFirst, P.nameLast, P.finalGame, SUM(B.H) AS Hits FROM `batting` B, `people` P WHERE B.playerID=P.playerID GROUP BY B.playerID ORDER BY Hits DESC LIMIT 500”);

echo(“

“);
while($row=$get_Hit_leaders->fetch_assoc()){
echo(“

“);
}
echo(“

Name Hits Final Game
$row[nameFirst] $row[nameLast] $row[Hits] $row[finalGame]

“);

echo(“

Active

“);

$get_active_Hit_leaders=$conn->query(“SELECT P.nameFirst, P.nameLast, P.finalGame, SUM(B.H) AS Hits FROM `batting` B, `people` P WHERE B.playerID=P.playerID AND (LEFT(P.finalGame,4)=’2019′ OR LEFT(P.finalGame,4)=’2018′) GROUP BY B.playerID ORDER BY Hits DESC LIMIT 500”);

echo(“

“);
while($row=$get_active_Hit_leaders->fetch_assoc()){
echo(“

“);
}
echo(“

Name Hits Final Game
$row[nameFirst] $row[nameLast] $row[Hits] $row[finalGame]

“);

echo(“

“);

?>

Trackback

no comment until now

Sorry, comments closed.