Просмотр файла chat.php
<?php include 'inc/db.php'; include 'inc/1.php'; $a=mysql_query("SELECT * FROM `room`"); $b=1; while ($f=mysql_fetch_assoc($a)){ $o=($b%2); echo "<div class='p$o'>- <a href='room.php?id=$f[id]'>".htmlspecialchars($f['name'])."</a></div>"; $b++; } if (($user['admin']==1) || ($user['moder']==1))msg("<a href='newc.php?id=0'>Новый чат</a>"); include_once 'inc/foot.php'; ?>