Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'db.php';
- $user_check_query = "SELECT * FROM users";
- $result = mysqli_query($db, $user_check_query);
- $user = mysqli_fetch_assoc($result);
- ?>
- <table>
- <?php
- while ($row = $result->fetch_assoc()) { ?>
- <tr>
- <td><?php $row['first_name']?></td>
- <td><?php $row['last_name']?></td>
- <td><?php $row['email']?></td>
- </tr>
- <?php } ?>
- </table>
- //No way sitas veikia :D
- if (count($users) > 0): ?>
- <div class="error">
- <?php foreach ($users as $users) : ?>
- <p><?php echo $users; ?></p>
- <?php endforeach ?>
- </div>
- <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement