Просмотр файла chat_servis/reg/last.php

Размер файла: 965B
<?
Error_Reporting(E_ALL & ~E_NOTICE);          /////////////// игнорируем ошибки

header ("Content-type:text/vnd.wap.wml; charset=utf-8");

$rand=rand(10000,1000000);
require("../conf.inc.php");

$link=mysql_pconnect ($DB_HOST, $DB_USER, $DB_PASS);
mysql_select_db($DB_NAME);
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<card title=\"&#x41F;&#x43E;&#x441;&#x43B;&#x435;&#x434;&#x43D;&#x44F;&#x44F; 20-&#x43A;&#x430;\">\n";
echo "<p align=\"left\">\n";

$q=@mysql_query("select name,cid from cusers where 1 order by cid desc limit 20;");
			while($arr=@mysql_fetch_array($q)) {
			print "<a href=\"http://elena.nsk.ru/chats/?cid=".$arr['cid']."\">".$arr['name']."</a> <br/>"; }

?>
<br/>
<small><a href="http://elena.nsk.ru">elena.nsk.ru</a></small>
</p>
</card>
</wml>
<?
mysql_close($link);
?>