View file admin/admins.php
<?php include '../inc/db.php'; include '../inc/1.php'; if ($user['admin']==0){ header("Location: /index.php"); exit;} echo "<div class='t2'>Команда</div>"; $q=mysql_query("SELECT * FROM `user` WHERE `admin` = '1'"); $b=1; while ($f=mysql_fetch_assoc($q)){ $p=($b%2); echo "<div class='p$p'>".im($f['id'])." <a href='/ank.php?id=$f[id]'>$f[name]</a></div>"; $b++; } include '../inc/foot.php'; ?>