hi. pls,pls help me. this is the code i made 2 display all registered users on chat. now i need your help..
- the nicks are now only displayed. i cant klick on it to see users profile (user.php) can any 1 do that??
- there are all nick(150) displayed on one page. how to do, that on one page will be displayed 10 or 20 nicks??
<?php
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print '<?xml version="1.0" encoding="utf-8"?>';
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'.
' "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
include "./ini.php";
print '<card title="'.$lang['test'].'">'.
'
';
$login = autorize();
if($login) {
print '[b]REGISTRED USERS[/b]'."
";
$query = mysql_query("SELECT login FROM chat_users;");
$num = mysql_numrows ($query);
for ($i = 0; $i < $num; $i++) { // all users
print mysql_result($query,$i,"login") . "
\n";}
print "
<a href=\"enter.php?id=$id&pass=$pass\">BACK</a>
";
} else { print $lang['not_loged']; }
//ŕ §ŕë˘ Ą¬ �Ą¤¨Ą¨Ą á ˇ §®©
@mysql_close();
print '</p>'.
'</card>'.
'</wml>';
ob_end_flush();
?>
and this is 0chatzone script. thanx