| Current Path : /var/www/cesa.co.za/relay/include/ |
| Current File : /var/www/cesa.co.za/relay/include/timing_report.php |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
$bgcnt=1;
$link = mysql_connect('localhost','ssidhvcc_matthew','shareb');
if ($link) {
$db=mysql_select_db('ssidhvcc_ssisite');
if (db) {
echo("Server connection established - generating report");
}
}
// retrieve data
//SELECT ID_num, name FROM saace_teammembers WHERE ID_num < 7900000000000 AND ID_num LIKE '______5______'"
$result1 = mysql_query("SELECT * FROM saace_team WHERE team_type='1' and type='comp'");
echo "<table border='1' cellspacing='0' cellpadding='0'><br />
<tr><h1> Competetive Running Teams </h1></tr>
<tr>
<th style='text-align:left;'>Name</th>
<th style='text-align:left;'>Status</th>
</tr>";
while($row = mysql_fetch_array($result1))
{
if ($row['name'] != NULL){
echo "<tr";
if ($bgcnt%2==0) {
echo " class='odd'";
} else {
echo " class='even'";
}
echo ">\n";
//echo "<td width='150px;'>" .$row['ID_num']. "</td>";
echo "<td width='150px;'>" . $row['comp_id'] . "</td>";
echo "<td width='150px;'>" . $row['name'] . "</td>";
echo "<td width='150px;'>" . $row['type'] . "</td>";
echo "<td width='150px;'>" . $row['team_type'] . "</td>";
echo "</tr>";
$bgcnt++;
}
}
?>
</body>
</html>