lazda2 Posted July 17, 2007 Report Share Posted July 17, 2007 karoce atradu <?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> un sho liekam ieksh savas lapas galvenaa CSS: /*-------------admintop---------------*/ #admintop { font-size: 10px; color: #204815; } #admintop td{ border: dotted; border-width: 1 0 0 0; padding-right: 20px; } #admintop th{ text-align: left; } cipa uzlieku to pirmo!! adminus raada bet to otru kaa jaaliek plz help!! Link to comment Share on other sites More sharing options...
lazda2 Posted July 18, 2007 Author Report Share Posted July 18, 2007 taks luuudzu kaads paliidzat!!! p.s sorry par dubultpostu!!! Link to comment Share on other sites More sharing options...
destiny-child Posted July 18, 2007 Report Share Posted July 18, 2007 p.s sorry par dubultpostu!!! EDIT māki ? Link to comment Share on other sites More sharing options...
Norek Posted July 18, 2007 Report Share Posted July 18, 2007 bļē, kas ir pirmais un kas otrais ? Link to comment Share on other sites More sharing options...
SuperRembo Posted July 18, 2007 Report Share Posted July 18, 2007 (edited) thx tavu pirmo kodu ari sataisiju. Aaa sapratu, tev vins jaieliek ieksa css koda, nu ta ir tada fignja kura atbild par tavu stilu saita, ja tu kaut ko tur maini visas web sadalas mainisies fons Edited July 18, 2007 by SuperRembo Link to comment Share on other sites More sharing options...
lazda2 Posted July 18, 2007 Author Report Share Posted July 18, 2007 (edited) pirmais : <?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> otrais: /*-------------admintop---------------*/ #admintop { font-size: 10px; color: #204815; } #admintop td{ border: dotted; border-width: 1 0 0 0; padding-right: 20px; } #admintop th{ text-align: left; } thx smile.gif tavu pirmo kodu ari sataisiju. Aaa sapratu, tev vins jaieliek ieksa css koda, nu ta ir tada fignja kura atbild par tavu stilu saita, ja tu kaut ko tur maini visas web sadalas mainisies fons smile.gif a kur tas fails tiesi atrodas???? Edited July 18, 2007 by lazda2 Link to comment Share on other sites More sharing options...
RavenHolm Posted July 19, 2007 Report Share Posted July 19, 2007 Mēs nezinam ar ko tu web taisi (pats noteikti nē, jo tad tu zināt kur atrodas tavs .css fails). Ja ir kautkāda Styles/Templates mape vai kas tamveidīgs tad tur, ja nē tad sameklē default.css failu (parasti) Link to comment Share on other sites More sharing options...
lazda2 Posted July 19, 2007 Author Report Share Posted July 19, 2007 (edited) man tas ir amx banos!!! man ir C:\wamp\www\amxbans\templates un tur visaadi faili !! es iekopeeju bet nekas nesanaak!!! Edited July 19, 2007 by lazda2 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now