Просмотр файла chat.php

Размер файла: 391B
  1. <?php
  2. include 'inc/db.php';
  3. include 'inc/1.php';
  4. $a=mysql_query("SELECT * FROM `room`");
  5. $b=1;
  6. while ($f=mysql_fetch_assoc($a)){
  7. $o=($b%2);
  8. echo "<div class='p$o'>- <a href='room.php?id=$f[id]'>".htmlspecialchars($f['name'])."</a></div>";
  9. $b++;
  10. }
  11. if (($user['admin']==1) || ($user['moder']==1))msg("<a href='newc.php?id=0'>Новый чат</a>");
  12. include_once 'inc/foot.php';
  13. ?>