В проблема в том что страница грузится бесконечно и не могу понять почему вот сам код страницы PHP: <?php include 'engine/template/ext/head.php';?> <link href="/assets/css/toastr.css" rel="stylesheet"/> <script src="/assets/js/toastr.js"></script> <?php if($_SESSION['getmsg']) { echo $_SESSION['getmsg']; unset($_SESSION['getmsg']); }?> <section class="bg-primary" id="personal"> <div class="container"> <div class="row"> <div class="personal-content"> <h2><?=$frac;?></h2><br><br> <div class="inner personal-content-info"> <div class="row"><hr></div> <div class="row main-info"> <form method="post"> <div class="form-group"> <div class="input-group"> <div class="input-group-addon"><span class="glyphicon glyphicon-star"></span> </div> <input type="text" name="alogin" class="form-control" placeholder="Введите логин" required> </div> </div> <button type="sumbit" class="btn btn-red"><font color="white">Добавить администратора</font></button></form><br><br> <form method="post"> <div class="col-md-12"> <h5>Всего <?php echo count($am); ?> сотрудников на проекте.</h5> <ul> <?php echo "<table class=\"table table-hover table-admin\"> <thead> <th>Ник</th> <th>Уровень</th> <th>Kick's</th> <th>Warn's</th> <th>Ban's</th> <th>Mute's</th> <th>Jail's</th> <th>Ответов</th> <th>Выговоры</th> <th>Последний вход</th> <th>Действия</th> </thead> "; foreach ($am as $am) { echo " <tr> <td>".$am['Name']."</td> <td>".$am['rank']."</td> <td>".$am['kick']."</td> <td>".$am['warn']."</td> <td>".$am['ban']."</td> <td>".$am['mute']."</td> <td>".$am['jail']."</td> <td>".$am['pm']."</td> <td>".$am['vig']."</td> <td>".$am['online_connection']."</td> <td> <form action=\"\" method=\"post\"> <select name=\"selphp\"> <option value=\"\">Выберите...</option> <option value=\"Maroon\">Снять</option> <option value=\"Green\">Повысить</option> <option value=\"Yellow\">Понизить</option> <option value=\"Blue\">Заморозить</option> <option value=\"Red\">Разморозить</option> </select> <input type=\"submit\" value=\"ok\"> </div> </form> </tr></form>"; } echo "</table>"; ?> </ul> </div> </div> </div> </div> </div> </section> <?php if( $_POST["selphp"] != "") { if($_POST["selphp"] == "Green") { echo "<form method=\"post\"><input type=\"hidden\" name=\"delete\" value=".$am['Name']."><button type=\"submit\">Удалить</button></form>"; } } ?> <?php if (isset($msg)): ?> <?=$msg;?> <?php endif;?> <script src="/assets/js/jquery.min.js"></script> <script src="/assets/js/bootstrap.min.js"></script> <script src="/assets/js/jquery.easing.min.js"></script> <script src="/assets/js/wow.js"></script> <script src="/assets/js/scripts.js"></script> </body> </html>
Возможно из-за этого? Код (Text): foreach ($am as $am) PHP: foreach ($am as $value) { echo " <tr> <td>".$value['Name']."</td> <td>".$value['rank']."</td> <td>".$value['kick']."</td> <td>".$value['warn']."</td> <td>".$value['ban']."</td> <td>".$value['mute']."</td> <td>".$value['jail']."</td> <td>".$value['pm']."</td> <td>".$value['vig']."</td> <td>".$value['online_connection']."</td> <td> <form action=\"\" method=\"post\"> <select name=\"selphp\"> <option value=\"\">Выберите...</option> <option value=\"Maroon\">Снять</option> <option value=\"Green\">Повысить</option> <option value=\"Yellow\">Понизить</option> <option value=\"Blue\">Заморозить</option> <option value=\"Red\">Разморозить</option> </select> <input type=\"submit\" value=\"ok\"> </div> </form> </tr></form>"; }