Advertisement
Advertisement
| 04.05.2008 at 06:30AM PDT, ID: 23298279 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: |
<?php
// Connects to your Database
mysql_connect("", "", "") or die(mysql_error());
mysql_select_db("") or die(mysql_error());
echo "<table border='0' width='100%' cellspacing='0'>
<tr>
<td class='toplinks' style='border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-style: solid; border-bottom-width: 1px; padding-bottom:4px' bordercolor='#DCE0EF' align='center'>
<b><font size='3' color='#407CBF'>Matches Awaiting Results</font></b></td>
</tr>
</table>
<p>
<center>
<table border='0' cellspacing='0' cellpadding='0' class='test'>
<tr>
<td class='results-header-left' width='20'>ID</td>
<td class='results-header' width='170'>Challenger</td>
<td class='results-header' width='170'>Opponent</td>
<td class='results-header' width='120'>Match Type</td>
<td class='results-header' width='120'>League</td>
<td class='results-header' width='80'>Date</td>
<td class='results-header' width='80'>Time</td>
<td class='results-header' width='120'>Outcome</td>
</tr>";
$enterresults = "SELECT *
FROM challenges
WHERE ( challenger LIKE '$gamertag' OR opponent LIKE '$gamertag' )
AND status= 'open'
AND accepted= 'Yes'
AND date < CURDATE() OR (date = CURDATE() AND time < CURTIME())
ORDER BY id " ;
$enterresults2 = mysql_query($enterresults);
$arr_data = array();
echo mysql_error();
while ($row = mysql_fetch_assoc($enterresults2))
{
$id=$row["id"];
$challenger=$row["challenger"];
$opponent=$row["opponent"];
$opp_score=$row["opp_score"];
print "
<tr>
<td class=results-show-left>$id</td>
<td class=results-show><a href='member.php?q=$challenger'>$challenger</a></td>
<td class=results-show><a href='member.php?q=$opponent'>$opponent</a></td>
<td class=results-show>{$row["matchtype"]}</td>
<td class=results-show>{$row["league"]}</td>
<td class=results-show>{$row["date"]}</td>
<td class=results-show>{$row["time"]}</td>
<td class=results-show>ENTER OUTCOME WILL GO HERE</td>
</tr>";
}
print "
</table>
</center>
</p>
<table border='0' width='100%' cellspacing='0'>
<tr>
<td class='toplinks' style='border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-style: solid; border-bottom-width: 1px; padding-bottom:4px' bordercolor='#DCE0EF' align='center'> </td>
</tr>
</table>
</body>
</html>
";
}
?>
|