Jump to content

Display problems in Safari and Firefox


BelowZero

Recommended Posts

When I insert this code into a page on my website, it displays correctly in IE9, but not in Safari or Firefox.

Any suggestions appreciated.

 

Code:

<?php include("opendatabase.php"); ?>

<div id="tables">
<?php

echo "<table width=680 border=1>\n";
echo "<th>Owner</th>";
echo "<th>Team</th>";
echo "<th>1</th>";
echo "<th>2</th>";
echo "<th>3</th>";
echo "<th>4</th>";
echo "<th>5</th>";
echo "<th>6</th>";
echo "<th>7</th>";
echo "<th>8</th>";
echo "<th>9</th>";
echo "<th>10</th>";
echo "<th>11</th>";
echo "<th>12</th>";
echo "<th>13</th>";
echo "<th>14</th>";
echo "<th>15</th>";
echo "<th>16</th>";
echo "<th>17</th>";
echo "<th>Total</th>";

$result = mysql_query( "
SELECT team_id, team_name, owner, total_pts
FROM teams
ORDER BY total_pts DESC" );

while ($row = mysql_fetch_array($result))
{
$i = $row['team_id'];

echo "<tr>\n",
"</td><td  align=center >",
$row['owner'],
"</td><td  align=center >",
$row['team_name'];

$result1 = mysql_query( "
SELECT bye, owner_pts
FROM schedule
WHERE team = $i");
$num_rows = mysql_num_rows($result1);

while ($row1 = mysql_fetch_array($result1))
{
	if (empty($row1['bye']))
	{
		echo "</td><td  align=center >", $row1['owner_pts'], "</tr>\n";
	}
	else
	{
		echo "</td><td  align=center  >","--","</tr>\n";
	}

}

while ($num_rows<=16)
{
	echo "</td><td>","","</tr>";
	$num_rows++;
}

echo "</td><td   align=center >",$row['total_pts'],"</tr>";

}
echo ' <tr><td height="10"></td></tr> ';

echo "</table>\n\n";

mysql_close($con);
?>

 

The page:

http://www.beat-the-spread.net/seasontotals.php

 

Thanks for any help!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.