Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link rel='icon' href='/image/database_accepted.png' />
- <body style="background-color:black">
- <?php
- include 'includes/connect.php';
- //Include the login varibles
- //Setup a query for all teams into a varible
- $number_select = $_GET['team'];
- $query = "SELECT * FROM teams WHERE number='$number_select'";
- $result = mysql_query($query);
- $test = mysql_fetch_array($result);
- if($test==null){
- echo "<img src='/image/no_data_found_paramaters.png'>";
- }else{
- }
- ?>
- <style>
- table, th, td {
- border: 1px solid black;
- }
- </style>
- <?php
- echo "<table bgcolor='#00FF00'>";
- echo "<tr>";
- echo "<th>Team Name</th>";
- echo "<th>Team Number</th>";
- echo "</tr>";
- echo "<font color='red'>";
- while($team = mysql_fetch_array($result)) {
- echo "<tr>";
- echo "<td>" . $team['Name'] . "</td>";
- echo "<td>" . $team['Number'] . "</td>";
- echo "</tr>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement