Your problem is here:
if(mysql_num_rows($result) == 0)
echo("Nothing to Display!");
$bgcolor = #E0E0E0; // light gray
echo("<table>");
while($row = mysql_fetch_array($result)){
if($bgcolor == #E0E0E0)
$bgcolor = #FFFFFF;
else
$bgcolor = #E0E0E0;
It should look like this:
if(mysql_num_rows($result) == 0)
echo("Nothing to Display!");
$bgcolor = "#E0E0E0"; // light gray
echo("<table>");
while($row = mysql_fetch_array($result)){
if($bgcolor == "#E0E0E0")
$bgcolor = "#FFFFFF";
else
$bgcolor = "#E0E0E0";
See the different colors of the hex color values? When they aren't quoted PHP can't figure out what you are trying to say since they aren't valid code.