Forum Moderators: coopster
[code}$map = $row['map'];
$win = $row['result'];
$output = "
<table border=\"0\" width=\"100%\" id=\"table3\">
<tr>
<td bgcolor=\"#657685\" width=\"26%\" align=\"center\"><b>
<font face=\"Verdana\" size=\"1\" color=\"#FFFFFF\">
$row[team]</font></b></td>
<td bgcolor=\"#657685\" width=\"38%\" align=\"center\">
<font color=\"#FFFFFF\" size=\"1\" face=\"Verdana\">
$row[map]</font></td>
<td bgcolor=\"#657685\" width=\"17%\">
<p align=\"center\">
<font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">$row[roundwon] - $row[roundlost]</font></p></td>
<td bgcolor=\"#657685\" width=\"11%\">
<p align=\"center\"><b>
<font color=\"$color\" size=\"2\" face=\"Verdana\">$row[result]</font></b></p></td>
</tr>
</table></td>
</tr>
";
};
[/code] That is the code that fetches the information.
and here is the info for the template array
"MATCHES" =>"$output",
$output = "
<table border=\"0\" width=\"100%\" id=\"table3\">
<tr>
<td bgcolor=\"#657685\" width=\"26%\" align=\"center\"><b>
<font face=\"Verdana\" size=\"1\" color=\"#FFFFFF\">
{$row['team']}</font></b></td>
<td bgcolor=\"#657685\" width=\"38%\" align=\"center\">
<font color=\"#FFFFFF\" size=\"1\" face=\"Verdana\">
{$row['map']}</font></td>
<td bgcolor=\"#657685\" width=\"17%\">
<p align=\"center\">
<font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">{$row['roundwon']} - {$row['roundlost']}</font></p></td>
<td bgcolor=\"#657685\" width=\"11%\">
<p align=\"center\"><b>
<font color=\"$color\" size=\"2\" face=\"Verdana\">{$row['result']}</font></b></p></td>
</tr>
</table></td>
</tr>
";
or taken out of the quotes completely:
$output = "
<table border=\"0\" width=\"100%\" id=\"table3\">
<tr>
<td bgcolor=\"#657685\" width=\"26%\" align=\"center\"><b>
<font face=\"Verdana\" size=\"1\" color=\"#FFFFFF\">
".$row['team']."</font></b></td>
<td bgcolor=\"#657685\" width=\"38%\" align=\"center\">
<font color=\"#FFFFFF\" size=\"1\" face=\"Verdana\">
".$row['map']."</font></td>
<td bgcolor=\"#657685\" width=\"17%\">
<p align=\"center\">
<font size=\"1\" face=\"Verdana\" color=\"#FFFFFF\">".$row['roundwon']." - ".$row['roundlost']."</font></p></td>
<td bgcolor=\"#657685\" width=\"11%\">
<p align=\"center\"><b>
<font color=\"$color\" size=\"2\" face=\"Verdana\">".$row['result']."</font></b></p></td>
</tr>
</table></td>
</tr>
";
nedloh, even though it might work, you should make those changes I pointed out above as it may create a problem for you as it's not the correct syntax for putting array elements within a string.