Vampire Heart Posted October 23, 2007 Report Share Posted October 23, 2007 Kas ir jādara, lai amxban'os izveidotu adminu topu? Cik esmu dzirdējis bija kaut kāds kods jāraksta. Kāds varētu pateikt to kodu? Link to comment Share on other sites More sharing options...
kill 4 you Posted October 23, 2007 Report Share Posted October 23, 2007 (edited) http://www.gign.lv/forum/index.php?showtopic=18954 http://www.gign.lv/forum/index.php?showtopic=10003 Uztaisi savā ../bans mapē admintop.php failu, kurā iekopē lejā doto tekstu un aizpildi nepieciešamās vietas, ieliec db name, username un pw. Un ejot ../bans/admintop.php viss strādās. <style type="text/css"> /*-------------admintop---------------*/ #admintop { font-size: 15px; color: #B22222; } #admintop td{ border: dotted; border-width: 1 0 0 0; padding-right: 20px; } #admintop th{ text-align: left; } </style> <?php echo "<table id='admintop'> <tr> <th>Admins</th> <th>Bani</th> </tr>"; $con = mysql_connect("mysql_hosts","mysql_useris","mysql_parole"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("amxbans", $con); $result = mysql_query("SELECT count(*), admin_nick FROM amx_bans GROUP BY admin_nick ORDER BY count(*) DESC LIMIT 5"); // DESC LIMIT 5 noziimee, ka vinjsh paraadiis 5 aktiivaakos while($row = mysql_fetch_array($result)) { $admins = $row['admin_nick']; $skaits = $row['count(*)']; echo "<tr> <td>$admins</td> <td>$skaits</td> </tr>"; } mysql_close($con); ?> </table> P.S. Iekš tā koda viss ir rediģējams. Edited October 23, 2007 by kill 4 you Link to comment Share on other sites More sharing options...
Vampire Heart Posted October 23, 2007 Author Report Share Posted October 23, 2007 liels paldies. var vērt ciet. Link to comment Share on other sites More sharing options...
Recommended Posts