За последние 24 часа нас посетили 53860 программистов и 1711 роботов. Сейчас ищут 795 программистов ...

Странная ошибка

Тема в разделе "PHP и базы данных", создана пользователем Vitte, 3 фев 2017.

  1. Vitte

    Vitte Активный пользователь

    С нами с:
    30 янв 2017
    Сообщения:
    113
    Симпатии:
    5
    Вот PHP
    PHP:
    1. <?php
    2.  
    3.  
    4. require 'bd.php';
    5. require '../bd.php';
    6.  
    7.  
    8.  
    9.   if ( isset($_SESSION['logged_user']) ) :
    10.  
    11.    
    12.  
    13. $tourn = mysqli_query($connection, "SELECT * FROM `tourn` ORDER BY `id` DESC");
    14.  
    15. ?>
    16. <?php
    17.  
    18.   while ( $art = mysqli_fetch_assoc($tourn)) {
    19.       ?>
    20.  
    21. <table border="1">
    22.    <tr>
    23.     <th>Название</th>
    24.     <th>Пароль</th>
    25.     <th>Удаление</th>
    26.    </tr>
    27.    <tr>
    28.     <td><?php echo $art['title'];?></td>
    29.     <th><?php echo $art['password'];?></th>
    30.     <td>
    31.  
    32.     <a href="#"> Удалить </a>
    33.  
    34.     </td>
    35.   </tr>
    36. </table>
    37.  
    38.  
    39. <?php else : ?>
    40. <a href="http://clash.com/tournirs/admin/login.php">Авторизация</a><br>
    41. <a href="http://clash.com/tournirs/admin/signup.php">Регистрация</a>
    42. <?php endif ; ?>
    Вот ошибка:
    Parse error: syntax error, unexpected 'else' (T_ELSE) in D:\OpenServer\domains\clash.com\tournirs\admin\delete_tourn.php on line 39
    --- Добавлено ---
    Разобрался:)
     
    Fell-x27 и denis01 нравится это.