PHP Scripts - OdinMS - Statistics PHP 

Re: [Release] PHP Scripts - OdinMS - Statistics

where do i need to put this in ?
<b>'.number_format($num_rows, 0, ',', '.').'</b> Accounts<br>
<b>'.number_format($num_rowsc, 0, ',', '.').'</b> Characters<br>
<b>- '.number_format($num_rowsc2, 0, ',', '.').'</b> Male<br>
<b>- '.number_format($num_rowsc3, 0, ',', '.').'</b> Female<br><br>
<b>'.number_format($num_rowsg, 0, ',', '.').'</b> Guilds<br>
<b>'.number_format($num_rowsg4.'</b> Guildmembers<br>
<b>'.number_format($num_rowsg2, 0, ',', '.'), 0, ',', '.').'</b> Guildboardthreads<br>
<b>'.number_format($num_rowsg3, 0, ',', '.').'</b> Guildboardposts<br><br>
<b>'.number_format($num_rows1, 0, ',', '.').'</b> Beginner<br>
<b>'.number_format($num_rows2, 0, ',', '.').'</b> Warrior<br>
<b>'.number_format($num_rows3, 0, ',', '.').'</b> Magician<br>
<b>'.number_format($num_rows4, 0, ',', '.').'</b> Bowman<br>
<b>'.number_format($num_rows5, 0, ',', '.').'</b> Thief<br><br>
<b>'.number_format($num_rowsb, 0, ',', '.').'</b> Banned Hackers<br><br>
<b>'.number_format($num_rows6, 0, ',', '.').'</b> Quests in progress<br>
<b>'.number_format($num_rows7, 0, ',', '.').'</b> Quests absolved<br>
<b>'.number_format($num_rows8, 0, ',', '.').'</b> GM Commands<br>
<b>'.number_format($num_rows9, 0, ',', '.').'</b> Famed<br>
<b>'.number_format(($num_rows10 * 2), 0, ',', '.').'</b> Friends<br><br>
<b>'.number_format($LevelVonAllen, 0, ',', '.').'</b> Level<br>
<b>'.number_format($FameVonAllen, 0, ',', '.').'</b> Fame<br>
<b>'.number_format($ExpVonAllen, 0, ',', '.').'</b> EXP<br>
<b>'.number_format($MesoVonAllen, 0, ',', '.').'</b> Meso<br>
<b>'.number_format($num_rows11, 0, ',', '.').'</b> Equipment<br>
<b>'.number_format($ItemsVonAllen, 0, ',', '.').'</b> Items<br><br>
<b>'.number_format($HpVonAllen, 0, ',', '.').'</b> HP<br>
<b>'.number_format($MpVonAllen, 0, ',', '.').'</b> MP<br>
<b>'.number_format($StrVonAllen, 0, ',', '.').'</b> STR<br>
<b>'.number_format($DexVonAllen, 0, ',', '.').'</b> DEX<br>
<b>'.number_format($IntVonAllen, 0, ',', '.').'</b> INT<br>
<b>'.number_format($LukVonAllen, 0, ',', '.').'</b> LUK<br>
<b>'.number_format($ApVonAllen, 0, ',', '.').'</b> AP<br>
<b>'.number_format($SpVonAllen, 0, ',', '.').'</b> SP<br><br>
<b>'.number_format($RebVonAllen, 0, ',', '.').'</b> Reborns<br><br>
 
Re: [Release] PHP Scripts - OdinMS - Statistics

Can some 1 make it work for s0wh4ts cms? I keep getting tons of errors.
 
Re: [Release] PHP Scripts - OdinMS - Statistics

wow really are you serous 08-09-2008 to 09-15-2008. you gotta be joking me... poeple dont post in this if you cant do simple php and MySQL than what are you doing.

yet again simi good coders have to hand feed nubs... -.-
Code:
<?php
include('functions/config.php');
$result = mysql_query("SELECT * FROM accounts", $db);// Account section
$num_rows = mysql_num_rows($result);
$result2 = mysql_query("SELECT * FROM characters", $db);// Character section
$num_rowsc = mysql_num_rows($result2);
$result2y = mysql_query("SELECT * FROM characters WHERE gender = 0", $db);// Character section
$num_rowsc2 = mysql_num_rows($result2y);
$result2x = mysql_query("SELECT * FROM characters WHERE gender = 1", $db);// Character section
$num_rowsc3 = mysql_num_rows($result2x);
$result15 = mysql_query("SELECT * FROM guilds", $db);// Character section
$num_rowsg = mysql_num_rows($result15);
$result18 = mysql_query("SELECT * FROM characters WHERE guildid > 0", $db);// Character section
$num_rowsg4 = mysql_num_rows($result18);
$result16 = mysql_query("SELECT * FROM bbs_threads", $db);// Character section
$num_rowsg2 = mysql_num_rows($result16);
$result17 = mysql_query("SELECT * FROM bbs_replies", $db);// Character section
$num_rowsg3 = mysql_num_rows($result17);
$result3 = mysql_query("SELECT * FROM channelconfig", $db);// Channel section
$num_rowsd = mysql_num_rows($result3);
$result4 = mysql_query("SELECT * FROM macbans", $db);// Account section
$num_rowsb = mysql_num_rows($result4);
$result5 = mysql_query("SELECT * FROM accounts where loggedin = 2", $db);// Account section
$num_rowsl = mysql_num_rows($result5);
$result6 = mysql_query("SELECT * FROM characters where job = 000", $db);// Account section
$num_rows1 = mysql_num_rows($result6);
$result6 = mysql_query("SELECT * FROM characters where job = 100 or job = 110 or job = 120 or job = 130 or job = 111 or job = 121 or job = 131 or job = 112 or job = 122 or job = 132", $db);// Account section
$num_rows2 = mysql_num_rows($result6);
$result7 = mysql_query("SELECT * FROM characters where job = 200 or job = 210 or job = 220 or job = 230 or job = 211 or job = 221 or job = 231 or job = 212 or job = 222 or job = 232", $db);// Account section
$num_rows3 = mysql_num_rows($result7);
$result8 = mysql_query("SELECT * FROM characters where job = 300 or job = 310 or job = 320 or job = 330 or job = 311 or job = 321 or job = 331 or job = 312 or job = 322 or job = 332", $db);// Account section
$num_rows4 = mysql_num_rows($result8);
$result9 = mysql_query("SELECT * FROM characters where job = 400 or job = 410 or job = 420 or job = 430 or job = 411 or job = 421 or job = 431 or job = 412 or job = 422 or job = 432", $db);// Account section
$num_rows5 = mysql_num_rows($result9);
$result10 = mysql_query("SELECT * FROM queststatus where status = 2", $db);// Account section
$num_rows6 = mysql_num_rows($result10);
$result11 = mysql_query("SELECT * FROM queststatus where status = 1", $db);// Account section
$num_rows7 = mysql_num_rows($result11);
$result12 = mysql_query("SELECT * FROM gmlog", $db);// Account section
$num_rows8 = mysql_num_rows($result12);
$result13 = mysql_query("SELECT * FROM famelog", $db);// Account section
$num_rows9 = mysql_num_rows($result13);
$result14 = mysql_query("SELECT * FROM buddies", $db);// Account section
$num_rows10 = mysql_num_rows($result14);
$query = mysql_query("SELECT level FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query)){
$LevelVonAllen = $LevelVonAllen + $row[level];
}
$query2 = mysql_query("SELECT fame FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query2)){
$FameVonAllen = $FameVonAllen + $row[fame];
}
$query3 = mysql_query("SELECT exp FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query3)){
$ExpVonAllen = $ExpVonAllen + $row[exp];
}
$query4 = mysql_query("SELECT meso FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query4)){
$MesoVonAllen = $MesoVonAllen + $row[meso];
}
$result21 = mysql_query("SELECT * FROM inventoryequipment", $db);// Account section
$num_rows11 = mysql_num_rows($result21);
$queryx = mysql_query("SELECT quantity FROM inventoryitems", $db);// Account section
while($row = mysql_fetch_array($queryx)){
$ItemsVonAllen = $ItemsVonAllen + $row[quantity];
}
$query5 = mysql_query("SELECT dex FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query5)){
$DexVonAllen = $DexVonAllen + $row[dex];
}
$query6 = mysql_query("SELECT str FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query6)){
$StrVonAllen = $StrVonAllen + $row[str];
}
$query7 = mysql_query("SELECT `int` FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query7)){
$IntVonAllen = $IntVonAllen + $row['int'];
}
$query8 = mysql_query("SELECT luk FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query8)){
$LukVonAllen = $LukVonAllen + $row[luk];
}
$query9 = mysql_query("SELECT rebirth FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query9)){
$RebVonAllen = $RebVonAllen + $row[rebirth];
}
$query10 = mysql_query("SELECT ap FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query10)){
$ApVonAllen = $ApVonAllen + $row[ap];
}
$query11 = mysql_query("SELECT sp FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query11)){
$SpVonAllen = $SpVonAllen + $row[sp];
}
$query12 = mysql_query("SELECT maxhp FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query12)){
$HpVonAllen = $HpVonAllen + $row[maxhp];
}
$query13 = mysql_query("SELECT maxmp FROM characters WHERE gm = 0", $db);// Account section
while($row = mysql_fetch_array($query13)){
$MpVonAllen = $MpVonAllen + $row[maxmp];
}
echo '
<b>'.number_format($num_rows, 0, ',', '.').'</b> Accounts<br>
<b>'.number_format($num_rowsc, 0, ',', '.').'</b> Characters<br>
<b>- '.number_format($num_rowsc2, 0, ',', '.').'</b> Male<br>
<b>- '.number_format($num_rowsc3, 0, ',', '.').'</b> Female<br><br>
<b>'.number_format($num_rowsg, 0, ',', '.').'</b> Guilds<br>
<b>'.number_format($num_rowsg4.'</b> Guildmembers<br>
<b>'.number_format($num_rowsg2, 0, ',', '.'), 0, ',', '.').'</b> Guildboardthreads<br>
<b>'.number_format($num_rowsg3, 0, ',', '.').'</b> Guildboardposts<br><br>
<b>'.number_format($num_rows1, 0, ',', '.').'</b> Beginner<br>
<b>'.number_format($num_rows2, 0, ',', '.').'</b> Warrior<br>
<b>'.number_format($num_rows3, 0, ',', '.').'</b> Magician<br>
<b>'.number_format($num_rows4, 0, ',', '.').'</b> Bowman<br>
<b>'.number_format($num_rows5, 0, ',', '.').'</b> Thief<br><br>
<b>'.number_format($num_rowsb, 0, ',', '.').'</b> Banned Hackers<br><br>
<b>'.number_format($num_rows6, 0, ',', '.').'</b> Quests in progress<br>
<b>'.number_format($num_rows7, 0, ',', '.').'</b> Quests absolved<br>
<b>'.number_format($num_rows8, 0, ',', '.').'</b> GM Commands<br>
<b>'.number_format($num_rows9, 0, ',', '.').'</b> Famed<br>
<b>'.number_format(($num_rows10 * 2), 0, ',', '.').'</b> Friends<br><br>
<b>'.number_format($LevelVonAllen, 0, ',', '.').'</b> Level<br>
<b>'.number_format($FameVonAllen, 0, ',', '.').'</b> Fame<br>
<b>'.number_format($ExpVonAllen, 0, ',', '.').'</b> EXP<br>
<b>'.number_format($MesoVonAllen, 0, ',', '.').'</b> Meso<br>
<b>'.number_format($num_rows11, 0, ',', '.').'</b> Equipment<br>
<b>'.number_format($ItemsVonAllen, 0, ',', '.').'</b> Items<br><br>
<b>'.number_format($HpVonAllen, 0, ',', '.').'</b> HP<br>
<b>'.number_format($MpVonAllen, 0, ',', '.').'</b> MP<br>
<b>'.number_format($StrVonAllen, 0, ',', '.').'</b> STR<br>
<b>'.number_format($DexVonAllen, 0, ',', '.').'</b> DEX<br>
<b>'.number_format($IntVonAllen, 0, ',', '.').'</b> INT<br>
<b>'.number_format($LukVonAllen, 0, ',', '.').'</b> LUK<br>
<b>'.number_format($ApVonAllen, 0, ',', '.').'</b> AP<br>
<b>'.number_format($SpVonAllen, 0, ',', '.').'</b> SP<br><br>
<b>'.number_format($RebVonAllen, 0, ',', '.').'</b> Reborns<br><br>
'
?>
just use this it is fully working
 
Re: [Release] PHP Scripts - OdinMS - Statistics

This is just a bunch of sqls and some output..
Good job though :)
 
Re: [Release] PHP Scripts - OdinMS - Statistics

I get these errors.

Code:
"
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 3

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 4

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 5

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 6

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 7

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 8

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 9

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 10

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 11

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 12

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 13

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 14

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 15

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 16

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 17

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 18

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 19

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 20

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 21

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 22

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 23

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 24

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 25

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 26

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 27

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 28

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 29

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 30

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 31

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 32

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 33

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 34

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 35

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 36

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 37

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 38

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 39

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 40

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 41

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 42

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 43

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 44

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 45

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 46

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 49

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 50

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 53

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 54

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 57

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 58

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 61

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 62

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 63

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 64

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 67

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 68

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 71

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 72

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 75

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 76

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 79

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 80

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 83

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 84

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 87

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 88

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 91

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 92

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 95

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 96

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\WampServer\www\statistics.php on line 99

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WampServer\www\statistics.php on line 100"
 
Last edited:
Re: [Release] PHP Scripts - OdinMS - Statistics

@dodoo post your errors in
Code:
 plz and make it conect to your config.php the one i have it set to is in the folder functions[/QUOTE]

kk, sorry about that.

i still get the error. i'm using FlareCMS btw.
 
Re: [Release] PHP Scripts - OdinMS - Statistics

how do we use this for s0wh4ts cms???
 
Back