This is my current php script to show table standings I keep getting errors on my page when I try to add colspan=”2″ to stretch the header
$data = mysql_query("SELECT * FROM `standings` WHERE division = 1 ORDER BY TotalPoints DESC;")
or die(mysql_error());
Print "<table border cellpadding=10 width=500>";
Print "<tr><th colspan="2">CONLEY</th></tr>";
Print "<tr><th>Team Members</th><th>Points</th></tr>";
while($info = mysql_fetch_array( $data ))
{
Print " <td>".$info['TeamMembers'] . "</td> ";
Print " <td>".$info['TotalPoints'] . "</td> </tr>";
}
Print "</table>";
You probably need to escape you quotation-marks, otherwise they will break the string and cause an error: