Here is the
link
Here is the script in full
<?php
require_once('../../mainfile.php');
require_once('../../header.php');
$player = "deesnuts"; //Player Name
$cid = "934"; //Clan Id
$lid= "7"; //Ladder Id
$tz= "0"; //Time Zone
echo $player;
echo "<script src='http://www.nato-ladder.com/nato_war_history.php?cid=$cid&lid=$lid&tz=$tz'></script>";
echo "<script src='http://www.nato-ladder.com/nato_upcoming_wars.php?cid=$cid&lid=$lid&tz=$tz'></script>";
echo "<script>
document.write('<table width='100' border='1' cellpadding='0' cellspacing='0' bordercolor='#000000'>');
document.write('<tr bgcolor='2E2E2E'>');
document.write('<td><font face='verdana' size='2'color='#FFFFFF'><b>Clan</B></font></td>');
document.write('<td align='center'><font face='verdana' size='2' color='#ffffff'><b>Date</B></font></td>');
document.write('<td align='center'><font face='verdana' size='2' color='#FFFFFF'><b>Us</B></font></td>');
document.write('<td align='center'><font face='verdana' size='2' color='#FFFFFF'><b>Them</B></font></td>');
document.write('</tr>');
var homeclan_id = 934;
// The frist array entry returned contains the number of rows in the query
var toprec = nato_war_data[0];
// Loop for all the records which were returned by the database
for (var i = 1; i <= toprec; i++)
{
// Setup a new array to capture the data
var tmp = new Array();
var delimiter = ",";
tmp = nato_war_data.split(delimiter);
// We know that we are getting 10 fields back from the NATO system
var war_id = tmp[0];
var home_id = tmp[1];
var home_tag = tmp[2];
var opp_id = tmp[3];
var opp_tag = tmp[4];
var war_date = tmp[5];
var home_score = tmp[6];
var opp_score = tmp[7];
var league_short = tmp[8];
var league_long = tmp[9];
if(home_score > opp_score)
{
war_color = bgcolor='#008000';
}
else
{
if(home_score < opp_score)
{
war_color = bgcolor='#800000';
}
else
{
war_color = '';
}
}
document.write('<tr bgcolor=2E2E2E>');
document.write('<td align='center'><font face='Verdana' size='1' color='#ffffff'><a href='http://www.nato-ladder.com/war.php?wid='+war_id+'' target='new'>'+opp_tag+'</a></font></td>');
document.write('<td nowrap align='center'><font face='Verdana' size='1' color='#ffffff'>'+war_date+'</font></td>');
document.write('<td align='center''war_color+'><center><font face=Verdana size='1' color=#ffffff>'+home_score+'</font></center></td>');
document.write('<td align='center''+war_color+'><center><font face=Verdana size='1' color=#ffffff>'+opp_score+'</font></center></td>');
document.write('</tr>');
}
document.write('</table>');
</script>";
?>
There is a error in the php. I have tried using / but still the same. The php is reconizing the //text as a string to and I dont know where the problem lies. The code was originally html and I am just trying to convert the entire thing to php so I can use my own variables in the script.