Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/relay/
Upload File :
Current File : /var/www/cesa.co.za/relay/comp_cyc.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 type='3' AND team_type='Comp' ORDER BY 'type'");

	echo "<table border='1' cellspacing='0' cellpadding='0'><br />
	<tr><h1> Competative Cycle Teams </h1></tr>
	<tr>
	<th style='text-align:left;'>Team Name</th>
	<th style='text-align:left;'>Team Type</th>
	<th style='text-align:left;'>Type</th>
	<th style='text-align:left;'>Company ID</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['name'] . "</td>";
	  echo "<td width='150px;'>" . $row['type'] . "</td>";
	  echo "<td width='150px;'>" . $row['team_type'] . "</td>";
	  echo "<td width='150px;'>" . $row['id'] . "</td>";
 	  echo "</tr>";
	  $bgcnt++;
	  }
	  }
	  
	  $result1 = mysql_query("SELECT * FROM saace_teammembers ORDER BY team_id");

	echo "<table border='1' cellspacing='0' cellpadding='0'><br />
	<tr><h1> Rec Walking Teams </h1></tr>
	<tr>
	<th style='text-align:left;'>Team ID</th>
	<th style='text-align:left;'>Name</th>
	<th style='text-align:left;'>Surname</th>
	<th style='text-align:left;'>ID</th>
	<th style='text-align:left;'>Gender</th>
	<th style='text-align:left;'>Date of Birth</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['team_id'] . "</td>";
	  echo "<td width='150px;'>" . $row['name'] . "</td>";
	  echo "<td width='150px;'>" . $row['surname'] . "</td>";
	  echo "<td width='150px;'>" . $row['ID_num'] . "</td>";
	  echo "<td width='150px;'>" . $row['gender'] . "</td>";
	  echo "<td width='150px;'>" . $row['age'] . "</td>";
 	  echo "</tr>";
	  $bgcnt++;
	  }
	  }
	  
	  
?> 
</body>
</html>