Parašė BloodKiller· 2007 Bal. 4 22:04:31
#6
DRAQeris parašė:
jei tą n pakeisiu į m tai tipo members (narių bus paieška?
} elseif ($stype == "m") {
$rows = dbcount("(user_id)", "users", "user_name LIKE '%$stext%'");
if ($rows != 0) {
echo $rows." ".($rows == 1 ? $locale['420'] : $locale['421']).$locale['422'].":<br><br>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name LIKE '%$stext%' ORDER BY user_name");
while ($data = dbarray($result)) {
echo "<a href='profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>\n";
}
} else {
echo "<center>0 ".$locale['421'].$locale['422'].".</center>\n";
}
closetable();
}