l2topzone.com
l2topzone.com

Author Topic: [Share] Top PvP/Pk For Site  (Read 3965 times)

0 Members and 1 Guest are viewing this topic.

OfflineDownUnder

  • Hero Member
  • *****
  • Posts: 1487
  • L2topzone Votes: 5
  • Servers reviews: 0
  • Country: Greece.
  • Reputation: +3236/-0
  • Gender: Male
  • http://www.l2cyber.eu
    • Just Press Here ;-)
[Share] Top PvP/Pk For Site
« on: February 07, 2011, 11:22:09 AM »
l2topzone.com
Hello L2TopZone Members Because We Don't Have Design Section I Add This Share Here:

config.php
Code: [Select]
<?php
$database_info = array(
'host' => 'localhost',  
'user' => 'root',
'password' => 'some_password',
'l2jdb' => 'l2jdb'
);


?>


databaseinfo.php
Code: [Select]
<?php


@mysql_connect($database_info['host'], $database_info['user'], $database_info['password']) or die(mysql_error());
@mysql_select_db($database_info['l2jdb']) or die(mysql_error());
?>


toppvp.php
Code: [Select]
<?php
// Connection
include 'config.php';
include 'databaseinfo.php';
?>


<?php
echo "<table>";

$query "SELECT * FROM characters WHERE accesslevel = 0 ORDER BY pvpkills DESC limit 10"//change 10 to whatever amount you want to show on your website.
//Connection CMD
$result mysql_query($query) or die(mysql_error());

// loops results
while ($row mysql_fetch_array($result)) 

{
//Adding Variables like a boss!
$name $row['char_name'];
$level $row['level'];
$pvpscore $row['pvpkills']; 
$pkscore $row['pkkills'];



// Inserting data into the table
echo "

<tr>
<td>
$name</td>
<td>
$level</td>
    <td>
$pvpscore</td>
<td>
$pkscore</td>
</tr>"
;

}

echo 
"</table>";

//closing mysql connection
mysql_close();
?>


You will need to add the HTML table yourself, it is all set up though, it displays as NAME LEVEL PVP PK

Enjoy.
Credits : L2CYBER TEAM


Linkback: https://l2topzone.com/forum/l2-java-projects/16/share-top-pvppk-site/2365/



Lineage II Cyber Reborn
We are coming! The Reborn is near!

OfflineEglezakioc

  • Full Member
  • ***
  • Posts: 205
  • L2topzone Votes: 0
  • Servers reviews: 4
  • Country: Greece.
  • Reputation: +661/-0
    Re: [Share] Top PvP/Pk For Site
    « Reply #1 on: February 07, 2011, 02:46:49 PM »
    i have seen this before...

    OfflineTiTaNiUm

    • Hero Member
    • *****
    • Posts: 553
    • L2topzone Votes: 28
    • Servers reviews: 2
    • Country: Greece.
    • Reputation: +880/-0
    • Gender: Male
    • ][TiTaNiUm][
      Re: [Share] Top PvP/Pk For Site
      « Reply #2 on: February 08, 2011, 10:09:24 AM »
      nice share downuner !!
      ΟΛΥΜΠΙΑΚΟΣ

      OfflineBoOmBoOm

      • Full Member
      • ***
      • Posts: 145
      • L2topzone Votes: 0
      • Servers reviews: 0
      • Country: Greece.
      • Reputation: +446/-1
      • ★MaxCheaters★
        Re: [Share] Top PvP/Pk For Site
        « Reply #3 on: February 13, 2011, 02:15:25 PM »
        English section

        Post Merge: February 13, 2011, 03:06:07 PM
        very nC guide
        « Last Edit: February 13, 2011, 03:06:07 PM by MrAnGeL »

        OfflineDownUnder

        • Hero Member
        • *****
        • Posts: 1487
        • L2topzone Votes: 5
        • Servers reviews: 0
        • Country: Greece.
        • Reputation: +3236/-0
        • Gender: Male
        • http://www.l2cyber.eu
          • Just Press Here ;-)
        Re: [Share] Top PvP/Pk For Site
        « Reply #4 on: February 13, 2011, 04:05:48 PM »
        what do you mean?
        « Last Edit: May 05, 2011, 08:59:22 AM by DownUnder™ »

        OfflinePl4yM4keR

        • Newbie
        • *
        • Posts: 30
        • L2topzone Votes: 0
        • Servers reviews: 0
        • Country: Romania.
        • Reputation: +65/-0
          Re: [Share] Top PvP/Pk For Site
          « Reply #5 on: July 27, 2011, 12:58:21 PM »
          Can somebody tell me where to add there codes if I have html site? :D
          Thanks!


          Share via diggShare via facebookShare via linkedinShare via myspaceShare via redditShare via twitter
           


          Sitemap