Hey, I am getting parse error on row 93, which is
while ($GFrow = mysql_fetch_object ($GF_result))
what could be wrong?(this is only a part of the whole page)
<html>
<head>
<title>MySQL Database Script</title>
</head>
<body>
<?php
/ Connect to the MySQL database /
$db_connection = mysql_connect("localhost", "squishy_Squishy", "password")
or die("Could not connect to DB");
/* Select the MasteringPHP database */
mysql_select_db ("squishy_FZMembers", $db_connection)
or die("Could not find DB");
/* Get GF info */
$GF_query = "SELECT Rank,
BFName,
Points,
Email,
Division,
Commander
from Recruits
WHERE Division
Like 'GF'";
/* Get AB info */
$AB_query = "SELECT Rank,
BFName,
Points,
Email,
Division,
Commander
from Recruits
WHERE Division
Like 'AB'";
/* Get AC info */
$AC_query = "SELECT Rank,
BFName,
Points,
Email,
Division,
Commander
from Recruits
WHERE Division
Like 'AC'";
/* Get RE info */
$RE_query = "SELECT Rank,
BFName,
DateJoined,
Email,
Division
from Recruits
WHERE Division
Like 'RE'";
/* GF ---- Send the query to MySQL for execution */
$GF_result = mysql_query ($GF_query, $db_connection);
/* AB ---- Send the query to MySQL for execution */
$AB_result = mysql_query ($AB_query, $db_connection);
/* AC ---- Send the query to MySQL for execution */
$AC_result = mysql_query ($AC_query, $db_connection);
/* RE ---- Send the query to MySQL for execution */
$RE_result = mysql_query ($RE_query, $db_connection);
/* Begin GF table to format data */
print "<table border=\"1\">\n";
print "<tr><td align=\"center\" colspan=\"4\" bgcolor=\"#ffff99\">";
print "<strong>Pets and Owners</strong>";
print "</td></tr>";
print "<TABLE cellSpacing=\"0\" cellPadding=\"0\" border=\"0\" width=\"100%\">\n";
print "<TBODY>";
print "<TR>";
print "<TD><IMG src=\"www.teamfz.org/bf1942/images/topic/rosters.jpg\"></TD>";
print "</TR>";
print "<center>";
print "<table width=\"500\" border=\"1\" cellspacing=\"1\" cellpadding=\"1\" bgColor=\"444d2e\" borderColorLight=\"green\" borderColorDark=\"black\">";
print "<tr><td colspan=\"5\"><font face=\"Verdana\" size=\"1\" color=\"white\"><center><b>Ground Forces Division</b></center></td></tr>";
print "<tr>";
print "<td bgcolor=\"444d2e\"><font face=\"Verdana\" size=\"1\" color=\"white\"><center><b>Rank</b></center></td>";
print "<td bgcolor=\"444d2e\"><font face=\"Verdana\" size=\"1\" color=\"white\"><center><b>Name</b></center></td>";
print "<td bgcolor=\"444d2e\"><font face=\"Verdana\" size=\"1\" color=\"white\"><center><b>Points</b></center></td>";
print "<td bgcolor=\"444d2e\"><font face=\"Verdana\" size=\"1\" color=\"white\"><center><b>E-Mail</b></center></td>";
print "<td bgcolor=\"444d2e\"><font face=\"Verdana\" size=\"1\" color=\"white\"><center><b>Division</b></center></td>";
print "</tr>"
/* GF Loop over query displaying all returned rows */
while ($GFrow = mysql_fetch_object ($GF_result))
{
if($GFrow->Commander == 1)
$rank = Com.;
else if($GFrow->Commander == 2)
$rank = Gen.;
else if($GFrow->Points <= 4)
$rank = Pvt.;
else if($GFrow->Points >= 5 <= 9)
&rank = PFC.;
else if($GFrow->Points >= 10 <= 39)
$rank = Spc.;