<h2>Permissions created by <?php echo $query['username']; ?> </h2> <table class='table' style='width: 100%;margin:auto' align='center'> <tr> <th style='text-align:center'>ID</th> <th style='text-align:center'>Name</th> <th style='text-align:center'>Password</th> <th style='text-align:center'>Created</th> <th> </th> </tr> <?php foreach (dbClass::getPasswordsByAdminId($id) as $password) { ?> <tr> <td style='text-align:center'><?php echo $password['id']; ?> </td> <td style='text-align:center'><?php echo $password['name']; ?> </td> <td style='text-align:center'><?php echo $password['password']; ?> </td> <td style='text-align:center'><?php