Example #1
0
            <th>Email</th>
            <th>Group</th>
            <th>Company</th>
            <th>Avatar</th>
            <th>Delete</th>
        </tr>
        <?php 
$num = 5;
// число абонентов на станице
$page = strip_tags($_GET['page']);
$option_group = strip_tags($_GET["option"]);
if (!$page) {
    $page = 0;
}
$post = new User();
$posts = $post->CountUser();
$total = intval(($posts[0] - 1) / $num) + 1;
$page = intval($page);
if (empty($page) or $page < 0) {
    $page = 1;
}
if ($page > $total) {
    $page = $total;
}
$start = $page * $num - $num;
$result1 = $post->NavigationUser($order, $start, $num, $option_group);
while ($row1 = mysql_fetch_assoc($result1)) {
    $id_user = $row1['id'];
    $group_id = $row1['id_group'];
    $group = $select_group->SelectGroup($group_id);
    $avatar = $row1['avatar_extension'];