Advertisement
Guest User

tmp

a guest
Sep 18th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1. <link rel='icon' href='/image/database_accepted.png' />
  2. <body style="background-color:black">
  3. <?php
  4.    include 'includes/connect.php';
  5.     //Include the login varibles
  6.    
  7.     //Setup a query for all teams into a varible
  8.    
  9.     $number_select = $_GET['team'];
  10.    
  11.     $query = "SELECT * FROM teams WHERE number='$number_select'";
  12.     $result = mysql_query($query);
  13.     $test = mysql_fetch_array($result);
  14.      if($test==null){
  15.         echo "<img src='/image/no_data_found_paramaters.png'>";
  16.     }else{
  17.         }
  18. ?>
  19.  
  20. <style>
  21. table, th, td {
  22.     border: 1px solid black;
  23. }
  24. </style>
  25. <?php
  26. echo "<table bgcolor='#00FF00'>";
  27. echo "<tr>";
  28. echo "<th>Team Name</th>";
  29. echo "<th>Team Number</th>";
  30. echo "</tr>";
  31. echo "<font color='red'>";
  32.     while($team = mysql_fetch_array($result)) {
  33. echo  "<tr>";
  34. echo    "<td>" . $team['Name'] . "</td>";
  35. echo    "<td>" . $team['Number'] . "</td>";
  36. echo   "</tr>";
  37.        
  38.  
  39.     }
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement