| Current Path : /var/www/cesa.co.za/relay/include/ |
| Current File : /var/www/cesa.co.za/relay/include/reports.php |
<?php
if (isset($_GET['act'])) {
$link = mysql_connect('localhost','ssidhvcc_nova','qtN0L]o;rHiP');
if ($link) {
$db=mysql_select_db('ssidhvcc_ssisite');
if (!db) {
die("Could not select db - ".mysql_error());
}
}
$result = mysql_query("SELECT ID_num, name FROM saace_teammembers WHERE ID_num < 7900000000000");
echo "<div style=\"float:left;\"><table border='1' align='center'>
<tr>
<th>ID Number</th>
<th>Name</th>
<th>Status</th>
</tr>";
while($row = mysql_fetch_array($result))
{
if ($row['ID_num'] != NULL){
echo "<tr>";
echo "<td>" .$row['ID_num']. "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>Veteran</td>";
echo "</tr>";
}
}
$result = mysql_query("SELECT ID_num, name FROM saace_teammembers WHERE ID_num > 7900000000000");
echo "<div style=\"float:right;\"><table border='1'>
<tr>
<th>ID Number</th>
<th>Name</th>
<th>Status</th>
</tr>";
while($row = mysql_fetch_array($result))
{
if ($row['ID_num'] != NULL){
echo "<tr>";
echo "<td>" .$row['ID_num']. "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>Under 40</td>";
echo "</tr>";
}
}
} else {
echo"session error";
}
$link = mysql_connect('localhost','ssidhvcc_nova','qtN0L]o;rHiP');
if ($link) {
$db=mysql_select_db('ssidhvcc_ssisite');
if (!db) {
die("Could not select db - ".mysql_error());
}
}
$result1 = mysql_query("SELECT name, type, team_type FROM saace_team");
echo "<div style=\"float:right;\"><table border='1'>
<tr>
<th></th>
<th>Name</th>
<th>Status</th>
</tr>";
while($row = mysql_fetch_array($result1))
{
echo "<tr>";
echo "<td>" .$row['name']. "</td>";
echo "<td>" . $row['type'] . "</td>";
echo "</tr>";
}
echo("am I the right file?");
?>