Skip to content

Commit

Permalink
Merge pull request #12 from KyleFardy/patch-3
Browse files Browse the repository at this point in the history
added table for user connections
  • Loading branch information
MarkisDev authored Jun 3, 2021
2 parents 8ef0071 + 2aa92bc commit c658f7a
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,29 @@
?>
</table>
<br>
<h2> User Guilds Response :</h2>
<div class="response-block">
<p> <?php echo json_encode($_SESSION['guilds']); ?></p>
</div>
<h2> User Guilds Response :</h2>
<div class="response-block"><p> <?php echo json_encode($_SESSION['guilds']); ?></p></div>
<br>
<h2> User Connections :</h2>
<table border="1">
<tr>
<th>NAME</th>
<th>ID</th>
</tr>
<?php
for($i = 0; $i < sizeof($_SESSION['connections']); $i++) {
echo "<tr><td>";
echo $_SESSION['connections'][$i]['name'];
echo "<td>";
echo $_SESSION['connections'][$i]['type'];
echo "</td>";
echo "</tr></td>";
}
?>
</table>
<br>
<h2> User Connections Response :</h2>
<div class="response-block"><p> <?php echo json_encode($_SESSION['connections']); ?></p></div>
</body>

</html>

0 comments on commit c658f7a

Please sign in to comment.