hi. pls,pls help me. this is the code i made 2 display all registered users on chat. now i need your help..
1. the nicks are now only displayed. i cant klick on it to see users profile (user.php) can any 1 do that??
2. there are all nick(150) displayed on one page. how to do, that on one page will be displayed 10 or 20 nicks??
and this is 0chatzone script. thanx
1. the nicks are now only displayed. i cant klick on it to see users profile (user.php) can any 1 do that??
2. there are all nick(150) displayed on one page. how to do, that on one page will be displayed 10 or 20 nicks??
Code:
<?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();
?>
Comment