Hi all,
It's going to be my first release so go easy on me
I made a php stats page which reads roles table on database. It's not well coded and designed. I don't had time to design it. I included css file and added a example bg. You can design it anyway you like or implement to your website. I've made it because i needed something like this and i'm releasing it because maybe someone need something like this too.
INSTALL:
1) Go stats.php line:2 and change your database settings.
2) Go line:10 and change ('WEBHOST_IP_OR_LINK') to your settings. //Don't use 127.0.0.1 use your ip.
3) Unrar stats.php, class and style.css files to your /var/www/ folder.
4) You are done, enjoy
DOWNLOAD: https://www.mediafire.com/?u4d3k2flhaaoklv
If you want to sort characters by level:
Find:
Change to:PHP Code:
$result = mysqli_query($con,"SELECT * FROM roles");
PHP Code:
$result = mysqli_query($con,"SELECT * FROM roles ORDER BY role_level DESC");
Last edited by Latyos; 17-03-14 at 11:17 AM. Reason: typo
just so you know you have a slight error
can you see themPHP Code:
if ($row[$row['role_occupation']=='4'){
echo "<td><img src=\"http://$address/class/" . 'barb' . ".png\"></td>";
}
if ($row[$row['role_occupation']=='7'){
echo "<td><img src=\"http://$address/class/" . 'cleric' . ".png\"></td>";
}
if ($row[$row fix them lines and boom
i changed
toPHP Code:
if ($row['role_occupation']=='5'){
echo "<td><img src=\"http://$address/class/" . 'assasin' . ".png\"></td>";
and got rid of $address as nolonger needs it :)PHP Code:
if ($row['role_occupation']=='5'){
echo "<td><img src=\"class/" . 'assasin' . ".png\"></td>";
Reason why i used address is make people available to get icons from different server (like me lol) my icons are in my pw host and php file in my webhost. But if you are using same host for icons and php file its better true ^^
GT-I9500 cihazımdan Tapatalk kullanılarak gönderildi
Blank Page ...
I Am A Noob !!....
//del
Last edited by StrangerJr; 28-05-14 at 04:28 PM.
didnt work for me i dont know why