Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table table-hover">
- <thead>
- <tr>
- <th data-field="id">Логин</th>
- <th data-field="name">Пароль</th>
- <th data-field="fullName">Статус</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $db = mysql_connect ("localhost","root", "");
- mysql_select_db("baza",$db);
- $result = mysql_query("select login, password, status from polzovatel",$db);
- while ($row = mysql_fetch_array($result)){
- ?>
- <tr>
- <td><? $row[0] ?></td>
- <td><? $row[1] ?></td>
- <?php if ($row[3] == 3) { ?>
- <td>Администратор</td>
- <?php } elseif ($row[3] == 2) { ?>
- <td>Кассир</td>
- <?php } elseif ($row[3] == 1) { ?>
- <td>Плательщик</td>
- <?php }; ?>
- </tr>
- <? } ?>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement