Guest User

Untitled

a guest
Jul 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. $user = $_SESSION['user'];
  2.  
  3. $result = mysql_query("SELECT * FROM Fitness WHERE user = '$user'");
  4.  
  5. echo "<table class='resultstable' border='1' cellspacing='0'>
  6. <tr>
  7. <th>User</th>
  8. <th>Date</th>
  9. <th>Weight</th>
  10. <th>Rowing Time <br \>(2000m)</th>
  11. <th>Back</th>
  12. <th>Bench</th>
  13. <th>Bicep</th>
  14. <th>Calf</th>
  15. <th>Squat</th>
  16. <th>Lats</th>
  17. <th>Quads</th>
  18. <th>Shoulders</th>
  19. <th>Trapezius</th>
  20. <th>Tricep</th>
  21. <th>DeadLift</th>
  22. </tr>";
  23.  
  24. while($row = mysql_fetch_array($result))
  25. {
  26. echo "<tr>";
  27. echo "<td>" . $row['user'] . "</td>";
  28. echo "<td>" . $row['Date'] . "</td>";
  29. echo "<td>" . $row['Weight'] . "</td>";
  30. echo "<td>" . $row['RowingTime'] . "</td>";
  31. echo "<td>" . $row['Back'] . "</td>";
  32. echo "<td>" . $row['Bench'] . "</td>";
  33. echo "<td>" . $row['Bicep'] . "</td>";
  34. echo "<td>" . $row['Gastrocnemeous'] . "</td>";
  35. echo "<td>" . $row['Squat'] . "</td>";
  36. echo "<td>" . $row['LatisumusDorsi'] . "</td>";
  37. echo "<td>" . $row['Quadracepts'] . "</td>";
  38. echo "<td>" . $row['Shoulders'] . "</td>";
  39. echo "<td>" . $row['Trapezius'] . "</td>";
  40. echo "<td>" . $row['Tricep'] . "</td>";
  41. echo "<td>" . $row['DeadLift'] . "</td>";
  42. echo "</tr>";
  43. }
  44. echo "</table>";
  45.  
  46. mysql_close($con);
Add Comment
Please, Sign In to add comment