• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

PHP (Exp/Day + Ranking / top 100)

alkamenes

New Member
Joined
Jul 15, 2007
Messages
115
Reaction score
2
First of all, im a beginner. And the script is probably coded bad.
Feel free to show me a way to optimize.

What does the code?
- Highscores sort by experience
- Name and level
- Exp/Day
- And the ranking (how many position up or down)

Example:

Pos: 5
Name: alka
Level: 50
Exp/day: 1244000
+-: 5




How the does it work?
Just run in it once a day.

Here is the code:

1. Create a table in your database
Code:
CREATE TABLE IF NOT EXISTS `player_stats` (
  `nummer` int(10) NOT NULL,
  `id` int(11) NOT NULL,
  `name` varchar(255) character set latin1 collate latin1_general_ci NOT NULL,
  `level` int(11) NOT NULL default '1',
  `vocation` int(11) NOT NULL,
  `current_experience` bigint(20) NOT NULL default '0',
  `new_experience` bigint(20) NOT NULL,
  `old_experience` bigint(20) NOT NULL,
  `experience_diffrence` bigint(20) NOT NULL,
  `old_nummer` int(2) NOT NULL,
  `nummer_diff` int(2) NOT NULL,
  `chara_is_new` varchar(3) character set latin1 collate latin1_general_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


2. Create a php file with this content and exucute.

Code:
<?php

mysql_connect("localhost","username","password") or die(mysql_error());
mysql_select_db("name_of_the_database") or die(mysql_error());


$abfrage = "SELECT id, name, level, vocation, experience FROM players ORDER BY experience DESC LIMIT 100";
$ergebnis = mysql_query($abfrage);

$id = array();
$name = array();
$level = array();
$vocation = array();
$exp = array();

while($ansprechbar = mysql_fetch_array($ergebnis))
{
array_push($id, $ansprechbar[id]);
array_push($name, $ansprechbar[name]);
array_push($level, $ansprechbar[level]);
array_push($vocation, $ansprechbar[vocation]);
array_push($exp, $ansprechbar[experience]);
}




$abfrage2 = "SELECT id, name, new_experience FROM player_stats";
$ergebnis2 = mysql_query($abfrage2);

$da_exp = array();
$id2 = array();
$name2 = array();
$neu = array();
$k = 0;
$a = 1;


foreach ($id as $key => $id3)
{


    $abfrage3 = "SELECT nummer, id, new_experience FROM player_stats WHERE id = '".$id3."'";
    $ergebnis3 = mysql_query($abfrage3);
    $ansprechbar2 = mysql_fetch_array($ergebnis3);
    array_push($id2, $ansprechbar2[id]);
    array_push($da_exp, $ansprechbar2[new_experience]);

    
   if($id3 == $ansprechbar2[id])
   {
      $die_exp = $ansprechbar2[new_experience];
      $place = $ansprechbar2[nummer];

     $eintrag = "UPDATE player_stats Set old_experience = '".$die_exp."', old_nummer = '".$place."' WHERE id = '".$id3."'";
      $eintragen = mysql_query($eintrag);
      echo "$a ok. Playerid: $ansprechbar2[id]<br> ";
      $k++;
      $a++;
   }
     else
     {

         echo "$name[$key] ist neu in der highscore liste. Er ist auf Platz $a. <br>";


         array_push($neu, $id3);

         $a++;
         $k++;
     }

}





    // part 2 here now



  
  
 $i = 0;
 $p = 0;
 $t = 1;
 
 $eintrags = "UPDATE player_stats Set chara_is_new = 'yes'";
 $eintragens = mysql_query($eintrags);
 
foreach ($id as $key2 => $wert)
{


 $abfrage4 = "SELECT old_nummer, nummer, id, new_experience FROM player_stats WHERE id = '".$wert."'";
    $ergebnis4 = mysql_query($abfrage4);
    $ansprechbar3 = mysql_fetch_array($ergebnis4);

if($wert == $ansprechbar3[id])
{


$new_place = $ansprechbar3[old_nummer] - $t;
$exp_diff = $exp[$key2] - $da_exp[$key2];
$eintrag2 = "UPDATE player_stats Set chara_is_new = 'no', name = '$name[$i]', id = '$id[$i]', level = '$level[$i]', vocation = '$vocation[$i]', current_experience = '$exp[$i]', new_experience = '$exp[$i]', experience_diffrence = '$exp_diff', nummer = '$t', nummer_diff = '$new_place' WHERE id = '".$wert."'";

// $eintrag2 = "INSERT INTO player_stats (nummer, id, name, level, vocation, current_experience, new_experience) VALUES ('$key2', '$id[$key2]', '$name[$key2]', '$level[$key2]', '$vocation[$key2]', '$exp[$key2]', '$exp[$key2]')";
$eintragen2 = mysql_query($eintrag2);

$i++;
$t++;
}
else
{

// $eintrag3 = "UPDATE player_stats Set id = '$id[$i]', name = '$name[$i]', level = '$level[$i]', vocation = '$vocation[$i]', current_experience = '$exp[$i]', new_experience = '$exp[$i]', experience_diffrence = '$exp_diff' WHERE nummer = '".$neu2."'";
$eintrag3 = "INSERT INTO player_stats (chara_is_new, nummer, id, name, level, vocation, current_experience, new_experience, experience_diffrence, nummer_diff) VALUES ('new', '$t', '$id[$i]', '$name[$i]', '$level[$i]', '$vocation[$i]', '$exp[$i]', '$exp[$i]', '0', '$new_place')";
$eintragen3 = mysql_query($eintrag3);
$i++;
$p++;
$t++;

}

  echo "$exp_diff exp. Highscorerank $new_place. <br>";


}

  $loschen = "DELETE FROM player_stats WHERE chara_is_new = 'yes'";
  $loschen_ex = mysql_query($loschen);
  
   echo "ja ich laufe $i mal durch und p ist gleich $p";
   
    // Ausgabe


$abfrage10 = "SELECT nummer, name, level, new_experience, experience_diffrence, nummer_diff FROM player_stats ORDER BY new_experience DESC";
$ergebnis10 = mysql_query($abfrage10);

$cachefile = "top100.html";


$b = '<div style="float:left;width:50px">Pos</div>
<div style="float:left;width:160px">Name</div>
<div style="float:left;width:100px">Level</div>
<div style="float:left;width:160px">Exp/day</div>
<div style="float:left;width:50px">+-</div>
<br>';
$fp2 = fopen($cachefile, 'w');
fwrite($fp2, $b);




while($row = mysql_fetch_array($ergebnis10))
{
    ob_start();
         echo '
           <div style="float:left;width:50px">'.$row['nummer'].'</div>
           <div style="float:left;width:160px"><a href="index.php?seite=search&char='.$row['name'].'">'.$row['name'].'</a></div>
           <div style="float:left;width:100px">'.$row['level'].'</div>
           <div style="float:left;width:160px">'.$row['experience_diffrence'].'</div>
           <div style="float:left;width:50px">'.$row['nummer_diff'].'</div>
          <br>';




fwrite($fp2, ob_get_contents());


}
fclose($fp2);
ob_end_flush();

?>

3. You will get HTML file with the content.
Just add in your homepage and you are done.


And once again, dont blame me. Im totaly beginner.
 
Really nice code ^_^ God work

I translated it to English


PHP:
<?php

mysql_connect("localhost","root","*****") or die(mysql_error());
mysql_select_db("ot") or die(mysql_error());


$abfrage = "SELECT id, name, level, vocation, experience FROM players ORDER BY experience DESC LIMIT 100";
$ergebnis = mysql_query($abfrage);

$id = array();
$name = array();
$level = array();
$vocation = array();
$exp = array();

while($ansprechbar = mysql_fetch_array($ergebnis))
{
array_push($id, $ansprechbar[id]);
array_push($name, $ansprechbar[name]);
array_push($level, $ansprechbar[level]);
array_push($vocation, $ansprechbar[vocation]);
array_push($exp, $ansprechbar[experience]);
}




$abfrage2 = "SELECT id, name, new_experience FROM player_stats";
$ergebnis2 = mysql_query($abfrage2);

$da_exp = array();
$id2 = array();
$name2 = array();
$neu = array();
$k = 0;
$a = 1;


foreach ($id as $key => $id3)
{


    $abfrage3 = "SELECT nummer, id, new_experience FROM player_stats WHERE id = '".$id3."'";
    $ergebnis3 = mysql_query($abfrage3);
    $ansprechbar2 = mysql_fetch_array($ergebnis3);
    array_push($id2, $ansprechbar2[id]);
    array_push($da_exp, $ansprechbar2[new_experience]);

    
   if($id3 == $ansprechbar2[id])
   {
      $die_exp = $ansprechbar2[new_experience];
      $place = $ansprechbar2[nummer];

     $eintrag = "UPDATE player_stats Set old_experience = '".$die_exp."', old_nummer = '".$place."' WHERE id = '".$id3."'";
      $eintragen = mysql_query($eintrag);
      echo "$a ok. Playerid: $ansprechbar2[id]<br> ";
      $k++;
      $a++;
   }
     else
     {

         echo "$name[$key] is new on the highscore $a. <br>";


         array_push($neu, $id3);

         $a++;
         $k++;
     }

}





    // part 2 here now



  
  
 $i = 0;
 $p = 0;
 $t = 1;
 
 $eintrags = "UPDATE player_stats Set chara_is_new = 'yes'";
 $eintragens = mysql_query($eintrags);
 
foreach ($id as $key2 => $wert)
{


 $abfrage4 = "SELECT old_nummer, nummer, id, new_experience FROM player_stats WHERE id = '".$wert."'";
    $ergebnis4 = mysql_query($abfrage4);
    $ansprechbar3 = mysql_fetch_array($ergebnis4);

if($wert == $ansprechbar3[id])
{


$new_place = $ansprechbar3[old_nummer] - $t;
$exp_diff = $exp[$key2] - $da_exp[$key2];
$eintrag2 = "UPDATE player_stats Set chara_is_new = 'no', name = '$name[$i]', id = '$id[$i]', level = '$level[$i]', vocation = '$vocation[$i]', current_experience = '$exp[$i]', new_experience = '$exp[$i]', experience_diffrence = '$exp_diff', nummer = '$t', nummer_diff = '$new_place' WHERE id = '".$wert."'";

// $eintrag2 = "INSERT INTO player_stats (nummer, id, name, level, vocation, current_experience, new_experience) VALUES ('$key2', '$id[$key2]', '$name[$key2]', '$level[$key2]', '$vocation[$key2]', '$exp[$key2]', '$exp[$key2]')";
$eintragen2 = mysql_query($eintrag2);

$i++;
$t++;
}
else
{

// $eintrag3 = "UPDATE player_stats Set id = '$id[$i]', name = '$name[$i]', level = '$level[$i]', vocation = '$vocation[$i]', current_experience = '$exp[$i]', new_experience = '$exp[$i]', experience_diffrence = '$exp_diff' WHERE nummer = '".$neu2."'";
$eintrag3 = "INSERT INTO player_stats (chara_is_new, nummer, id, name, level, vocation, current_experience, new_experience, experience_diffrence, nummer_diff) VALUES ('new', '$t', '$id[$i]', '$name[$i]', '$level[$i]', '$vocation[$i]', '$exp[$i]', '$exp[$i]', '0', '$new_place')";
$eintragen3 = mysql_query($eintrag3);
$i++;
$p++;
$t++;

}

  echo "$exp_diff exp. Highscorerank $new_place. <br>";


}

  $loschen = "DELETE FROM player_stats WHERE chara_is_new = 'yes'";
  $loschen_ex = mysql_query($loschen);
  
   echo "Yes i run the scripts $i times and p is same $p";
   
    // Ausgabe


$abfrage10 = "SELECT nummer, name, level, new_experience, experience_diffrence, nummer_diff FROM player_stats ORDER BY new_experience DESC";
$ergebnis10 = mysql_query($abfrage10);

$cachefile = "top100.html";


$b = '<div style="float:left;width:50px">Pos</div>
<div style="float:left;width:160px">Name</div>
<div style="float:left;width:100px">Level</div>
<div style="float:left;width:160px">Exp/day</div>
<div style="float:left;width:50px">+-</div>
<br>';
$fp2 = fopen($cachefile, 'w');
fwrite($fp2, $b);




while($row = mysql_fetch_array($ergebnis10))
{
    ob_start();
         echo '
           <div style="float:left;width:50px">'.$row['nummer'].'</div>
           <div style="float:left;width:160px"><a href="index.php?seite=search&char='.$row['name'].'">'.$row['name'].'</a></div>
           <div style="float:left;width:100px">'.$row['level'].'</div>
           <div style="float:left;width:160px">'.$row['experience_diffrence'].'</div>
           <div style="float:left;width:50px">'.$row['nummer_diff'].'</div>
          <br>';




fwrite($fp2, ob_get_contents());


}
fclose($fp2);
ob_end_flush();

?>
 
wtf i try include this to html file and got it but i have this error

1 ok. Playerid: 70
2 ok. Playerid: 75
3 ok. Playerid: 614
4 ok. Playerid: 106
5 ok. Playerid: 68
6 ok. Playerid: 611
7 ok. Playerid: 496
8 ok. Playerid: 105
9 ok. Playerid: 202
10 ok. Playerid: 238
11 ok. Playerid: 114
12 ok. Playerid: 758
13 ok. Playerid: 176
14 ok. Playerid: 503
15 ok. Playerid: 507
16 ok. Playerid: 215
17 ok. Playerid: 634
18 ok. Playerid: 587
19 ok. Playerid: 180
20 ok. Playerid: 147
21 ok. Playerid: 86
22 ok. Playerid: 137
23 ok. Playerid: 226
24 ok. Playerid: 852
25 ok. Playerid: 220
26 ok. Playerid: 1168
27 ok. Playerid: 809
28 ok. Playerid: 92
29 ok. Playerid: 74
30 ok. Playerid: 592
31 ok. Playerid: 487
32 ok. Playerid: 73
33 ok. Playerid: 1145
34 ok. Playerid: 280
35 ok. Playerid: 72
36 ok. Playerid: 500
37 ok. Playerid: 94
38 ok. Playerid: 128
39 ok. Playerid: 300
40 ok. Playerid: 458
41 ok. Playerid: 1086
42 ok. Playerid: 159
43 ok. Playerid: 1317
44 ok. Playerid: 168
45 ok. Playerid: 194
46 ok. Playerid: 757
47 ok. Playerid: 1089
48 ok. Playerid: 123
49 ok. Playerid: 541
50 ok. Playerid: 1051
51 ok. Playerid: 1112
52 ok. Playerid: 184
53 ok. Playerid: 341
54 ok. Playerid: 584
55 ok. Playerid: 140
56 ok. Playerid: 1381
57 ok. Playerid: 1054
58 ok. Playerid: 467
59 ok. Playerid: 1278
60 ok. Playerid: 144
61 ok. Playerid: 886
62 ok. Playerid: 478
63 ok. Playerid: 632
64 ok. Playerid: 1260
65 ok. Playerid: 594
66 ok. Playerid: 568
67 ok. Playerid: 874
68 ok. Playerid: 1340
69 ok. Playerid: 1131
70 ok. Playerid: 1396
71 ok. Playerid: 1324
72 ok. Playerid: 936
73 ok. Playerid: 117
74 ok. Playerid: 530
75 ok. Playerid: 563
76 ok. Playerid: 195
77 ok. Playerid: 762
78 ok. Playerid: 457
79 ok. Playerid: 544
80 ok. Playerid: 1311
81 ok. Playerid: 257
82 ok. Playerid: 654
83 ok. Playerid: 474
84 ok. Playerid: 615
85 ok. Playerid: 813
86 ok. Playerid: 71
87 ok. Playerid: 126
88 ok. Playerid: 425
89 ok. Playerid: 430
90 ok. Playerid: 1080
91 ok. Playerid: 227
92 ok. Playerid: 331
93 ok. Playerid: 1154
94 ok. Playerid: 143
95 ok. Playerid: 976
96 ok. Playerid: 1353
97 ok. Playerid: 1133
98 ok. Playerid: 103
99 ok. Playerid: 264
100 ok. Playerid: 157
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
 
Do i need to load that php file once / day manually?

Yes.


@Aveo

Its not an error:


Code:
1 ok. Playerid: 70
2 ok. Playerid: 75
3 ok. Playerid: 614
4 ok. Playerid: 106
5 ok. Playerid: 68
6 ok. Playerid: 611

This says, the the player is in the list. New exp and old exp can be compared now.

Code:
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.

This means, players have gained 0 exp and ranks has not been changed.

Change the experience of someone, make !save and run the script (dont refresh just wait), you will see the diffrent.

For all the results check the html file, it will be created in the same directory as the .php file.
 
this is what is displayed in the web browser!!

Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
God Sebek is new on the highscore 1. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
GM Achilleus is new on the highscore 2. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Skarin is new on the highscore 3. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Lord Sebek is new on the highscore 4. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Dragonz Blade is new on the highscore 5. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Lobosin is new on the highscore 6. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Shax Beta is new on the highscore 7. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Sir Lightfoot is new on the highscore 8. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Blackened Hakik is new on the highscore 9. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Wiz is new on the highscore 10. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Shadown Exile is new on the highscore 11. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Test Wiz is new on the highscore 12. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Kushed is new on the highscore 13. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Sdjfg is new on the highscore 14. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Owner Wiz is new on the highscore 15. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Viking Lord Skarin is new on the highscore 16. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Liam Darkcrosser is new on the highscore 17. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Knight Sample is new on the highscore 18. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Paladin Sample is new on the highscore 19. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Druid Sample is new on the highscore 20. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Sorcerer Sample is new on the highscore 21. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Raks Ninja is new on the highscore 22. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 45
Chaosruler is new on the highscore 23. 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 98
exp. Highscorerank . 
Yes i run the scripts 23 times and p is same 23
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\aac\playerstatus.php on line 157

Any idea's?!?!


Also a html is generated but theres nothing listed and i know for sure me and my friend gained 13 lvl's
 
Never saw this error before.
Did you add the table "player_stats" on your database?
 
Alkamenes.. Kannst du es auch für XML machen? :)

English: Alkamenes.. Can u do it for XML too? :)
 
I got it working fine for me but I wanted the top100.html file to be shown in on my design instead of a blank page and I have tried to edit ti and can't get it the way it needs to be.

Anyone who wants to help thanks
I'm using nicaw acc
 
Now i got SQL TFS and i want it like Eloth...
On Eloth Page u can see who gaind and who lost most exp.
 
Hmm i have a small bug. When I go to Exp Statistics on my page I don't have any tables oO. Just
Code:
1 ok. Playerid: 1
2 ok. Playerid: 2
3 ok. Playerid: 3
4 ok. Playerid: 4
5 ok. Playerid: 5
6 ok. Playerid: 6
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
0 exp. Highscorerank 0.
Yes i run the scripts 6 times and p is same
Any ideas?
 
Back
Top