PHP User::find_all_users Examples

PHP User::find_all_users - 2 examples found. These are the top rated real world PHP examples of User::find_all_users extracted from open source projects. You can rate examples to help us improve the quality of examples.
<div class="container-fluid">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">
                DASHBOARD
                <small>Subheading</small>
            </h1>
            
            <?php 
echo '<h4>All users</h4>';
$users = User::find_all_users();
foreach ($users as $user) {
    echo $user->last_name . '<br />';
}
?>

            <?php 
echo '<h4>Specific user</h4>';
$user = User::find_user_by_id(2);
echo $user->username;
?>
            <ol class="breadcrumb">
                <li>
                    <i class="fa fa-dashboard"></i>  <a href="index.html">Dashboard</a>
                </li>
                <li class="active">
                    <i class="fa fa-file"></i> Blank Page
                </li>
            </ol>
        </div>
    </div>
<div class="container-fluid">

    <!-- Page Heading -->
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">
                Admin
                <small>Subheading</small>
            </h1>


           <?php 
$result_set = User::find_all_users();
while ($row = mysqli_fetch_array($result_set)) {
    echo $row['username'] . "<br>";
}
$result = User::find_user_by_id(2);
echo $result['first_name'];
?>
            <ol class="breadcrumb">
                <li>
                    <i class="fa fa-dashboard"></i>  <a href="index.html">Dashboard</a>
                </li>
                <li class="active">
                    <i class="fa fa-file"></i> Blank Page
                </li>
            </ol>
        </div>
    </div>
    <!-- /.row -->