Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user = $_SESSION['user'];
- $result = mysql_query("SELECT * FROM Fitness WHERE user = '$user'");
- echo "<table class='resultstable' border='1' cellspacing='0'>
- <tr>
- <th>User</th>
- <th>Date</th>
- <th>Weight</th>
- <th>Rowing Time <br \>(2000m)</th>
- <th>Back</th>
- <th>Bench</th>
- <th>Bicep</th>
- <th>Calf</th>
- <th>Squat</th>
- <th>Lats</th>
- <th>Quads</th>
- <th>Shoulders</th>
- <th>Trapezius</th>
- <th>Tricep</th>
- <th>DeadLift</th>
- </tr>";
- while($row = mysql_fetch_array($result))
- {
- echo "<tr>";
- echo "<td>" . $row['user'] . "</td>";
- echo "<td>" . $row['Date'] . "</td>";
- echo "<td>" . $row['Weight'] . "</td>";
- echo "<td>" . $row['RowingTime'] . "</td>";
- echo "<td>" . $row['Back'] . "</td>";
- echo "<td>" . $row['Bench'] . "</td>";
- echo "<td>" . $row['Bicep'] . "</td>";
- echo "<td>" . $row['Gastrocnemeous'] . "</td>";
- echo "<td>" . $row['Squat'] . "</td>";
- echo "<td>" . $row['LatisumusDorsi'] . "</td>";
- echo "<td>" . $row['Quadracepts'] . "</td>";
- echo "<td>" . $row['Shoulders'] . "</td>";
- echo "<td>" . $row['Trapezius'] . "</td>";
- echo "<td>" . $row['Tricep'] . "</td>";
- echo "<td>" . $row['DeadLift'] . "</td>";
- echo "</tr>";
- }
- echo "</table>";
- mysql_close($con);
Add Comment
Please, Sign In to add comment