<div id = "Profile-Horizontal-Split-Right"> <div id = "Profile-Horizontal-Split-Left"> <?php echo '<div id ="Profile-Picture"><img src=' . $fetchProfilePic['filePath'] . '></div>'; ?> <div id ="Profile-bio"> <h3><?php echo $user_info['first_Name'] . " " . $user_info['last_Name']; ?> </h3> <h2></h2> Trip Country:<br/><?php echo countryName($db, $info['trip_country']); ?> <br/> Tags:<br/><?php echo $info['tags']; ?> <br/> Trip Date:<br/><?php echo $trip_Date; ?> <br/> Last Update:<br/><?php echo $mod_date; ?> <br/>
?> <h2>User Management</h2> <?php //Check if any users are in table then display results if (mysqli_num_rows($users_table) > 0) { print "\n <table border='1' cellspacing='0'> \n <tr>\n <td>User ID</td>\n <td>Group ID</td>\n <td>UserName</td>\n <td>First Name</td>\n <td>Last Name</td>\n <td>Country</td>\n <td>Email</td>\n <td>Edit</td>\n <td>Delete</td>\n </tr>"; while ($info = mysqli_fetch_array($users_table)) { echo "<trstyle='background-color:#000000;'>"; echo "<td>" . $info['userID'] . "</td>"; echo "<td>" . $info['groupID'] . "</td>"; echo "<td>" . $info['userName'] . "</td>"; echo "<td>" . $info['first_Name'] . "</td>"; echo "<td>" . $info['last_Name'] . "</td>"; echo countryName($db, $info['country']); echo "<td>" . $info['email'] . "</td>"; echo '<td><a href="./?page=edit_user&id=' . $info['userID'] . '">Edit</a></td>'; echo userMatch($info['userID'], $_SESSION["userID"]); echo "</tr>"; } echo "</table>"; } else { //No users? Register then! echo "<p>No users registered on the system, please <a href='./?page=register'>Register</a></p>"; } ?> <?php if (mysqli_num_rows($permissions) > 0) { echo "<h2>Group Management</h2>"; if (mysqli_num_rows($groups) > 0) {