Jump to content
MakeWebGames

Jawad

Members
  • Posts

    51
  • Joined

  • Last visited

    Never

Everything posted by Jawad

  1. Re: [v1] Updated Statistics Page here it is for v2 am using oxidation code but i just convist it for the people who cant   <?php include "globals.php"; $q=mysql_query("SELECT userid FROM users",$c); $membs=mysql_num_rows($q); $q=mysql_query("SELECT userid FROM users WHERE bankmoney>-1",$c); $banks=mysql_num_rows($q); $q=mysql_query("SELECT userid FROM users WHERE gender='Male'",$c); $male=mysql_num_rows($q); $q=mysql_query("SELECT userid FROM users WHERE gender='Female'",$c); $fem=mysql_num_rows($q); $total=0; $q=mysql_query("SELECT money FROM users",$c); while($r=mysql_fetch_array($q)) { $total+=$r['money']; } $avg=(int) ($total/$membs); $totalb=0; $q=mysql_query("SELECT bankmoney FROM users WHERE bankmoney>-1",$c); while($r=mysql_fetch_array($q)) { $totalb+=$r['bankmoney']; } $avgb=(int) ($totalb/$banks); $totalc=0; $q=mysql_query("SELECT crystals FROM users",$c); while($r=mysql_fetch_array($q)) { $totalc+=$r['crystals']; } $totali=0; $q=mysql_query("SELECT inv_qty FROM inventory",$c); while($r=mysql_fetch_array($q)) { $totali+=$r['inv_qty']; } $avgc=(int) ($totalc/$membs); $q=mysql_query("SELECT mail_id FROM mail",$c); $mail=mysql_num_rows($q); $q=mysql_query("SELECT evID FROM events",$c); $events=mysql_num_rows($q); $nogender1=mysql_query("SELECT * FROM users WHERE gender=''",$c); $nogender=mysql_num_rows($nogender1); $maleperc=round($male/$membs*100).'%'; $femaleperc=round($fem/$membs*100).'%'; $nogenderperc=round($nogender/$membs*100).'%'; $highestdonator1=mysql_query("SELECT * FROM users ORDER BY donatordays DESC LIMIT 1;",$c); $hd=mysql_fetch_array($highestdonator1); print "<h3>Statistics Department</h3> You walk through the statistics centre and stare at the boards. <table width='90%' style='border:groove; border-color:chocolate;'><tr><th>Users</th><th>Houses</th><th><th>Cities</th></tr> <tr><td>There are currently $membs members signed up $male ($maleperc) males, $fem ($femaleperc) females and $nogender ($nogenderperc) multigenders. There are ".mysql_num_rows(mysql_query("SELECT * FROM users WHERE donatordays>0",$c))." donators "; if(mysql_num_rows($highestdonator1) != 0) { print "The highest current donator is {$hd['username']} "; } print "</td> <td>This how many members have amount of each house "; $q=mysql_query("SELECT * FROM houses ORDER BY hPRICE,hWILL ASC",$c); while($r=mysql_fetch_array($q)) { $q3=mysql_num_rows(mysql_query("SELECT * FROM users WHERE maxwill={$r['hWILL']}",$c)); print "".$r['hNAME']." - $q3 users have it "; } print "..and ".mysql_num_rows(mysql_query("SELECT * FROM users WHERE maxwill<='100'",$c))." dont have a house."; print "</td><td>"; $q=mysql_query("SELECT * FROM cities ORDER BY cityname ASC",$c); while($r=mysql_fetch_array($q)) { $q3=mysql_num_rows(mysql_query("SELECT * FROM users WHERE location={$r['cityid']}",$c)); $hmhi=round($q3/$membs*100).'%'; print "".$r['cityname']." - $q3 users have it ({$hmhi}) "; } print "</td></tr> <tr><th>Financial</th><th>Gangs</th><th>Mail/Events</th></tr> <tr><td> Amount of cash in circulation: \$".money_formatter($total,"").". The average player has: \$".money_formatter($avg,"").". Amount of cash in banks: \$".money_formatter($totalb,"").". Amount of players with bank accounts: $banks The average player has in their bank accnt: \$".money_formatter($avgb,"").". Amount of crystals in circulation: ".money_formatter($totalc,"").". The average player has: ".money_formatter($avgc,"")." crystals.</td> <td>"; $gangs=mysql_num_rows(mysql_query("SELECT gangID FROM gangs",$c)); $bg1=mysql_query("SELECT * FROM gangs ORDER BY gangRESPECT DESC LIMIT 1",$c); $bg=mysql_fetch_array($bg1); print "There are currently $gangs in circulation. "; if(mysql_num_rows($bg1) != 0) { print "The best gang is {$bg['gangNAME']} "; } print "</td><td><u>Mails/Events</u> ".money_formatter($mail,"")." mails and ".money_formatter($events,"")." events have been sent.</td></tr> <tr><th>Items</th><th> </th><th> </th></tr> <tr><td>There are currently ".money_formatter($totali,"")." items in circulation.</td><td></td><td></td> </tr> </table>   "; $h->endpage(); ?>
  2. Re: Help PLease still not working guys some one help it out
  3. Re: [v1] Updated Statistics Page oxidation is one is the best for us if got your kyle thne post it here thanks 1+ for oxidation and 1+ for kyle when he posting his if wants too
  4. Re: Help PLease i have i delted all the gang talbes and i re added it but still am getting this error m8
  5. Re: Help PLease so i do i fix it m8
  6. Re: [TGM] User Rating System [TGM] lol everyone is saying they made this mod but lol non of u did and i think Cronus is the one who made it and silver copyed him
  7. Re: [FREE]Music system i get this error when i add on my m8s gmae m8 #1060 - Duplicate column name 'music'
  8. Re: [FREE]Music system thanks kyl nice one 1+ dont care what other people say but we love thx for giving tis mod for free
  9. Re: [Free] Password reset code m8 wat do i have to add on this mysql.php cuz it says require "mysql.php"; and when i done it get this error       Warning: main(mysql.php) [function.main]: failed to open stream: No such file or directory in /home/immor5/public_html/forgot_password.php on line 6 Warning: main(mysql.php) [function.main]: failed to open stream: No such file or directory in /home/immor5/public_html/forgot_password.php on line 6 Warning: main(mysql.php) [function.main]: failed to open stream: No such file or directory in /home/immor5/public_html/forgot_password.php on line 6 Fatal error: main() [function.require]: Failed opening required 'mysql.php' (include_path='.:/usr/lib/php') in /home/immor5/public_html/forgot_password.php on line 6
  10. Re: [Free] Password reset code +1 thanks
  11. Re: v3 game engine lol
  12. Re: {Sorry But One More Help Needed } so no one ones it
  13. WHen i add sumthinbg or when ppl go to honor market i get this error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/rocky/public_html/honormarket.php on line 29 and they is something in database please kyle help it out m8 or one please what should i put in database for honor market
  14. Re: Quick Help Please alright lol
  15. Re: Quick Help Please thx kyle i mean reddeival you the best 1+
  16. Re: Quick Help Please man what is it then cuz when i acpect some propsal and i get at error m8 QUERY ERROR: Unknown column 'married' in 'field list' Query was UPDATE users SET married=2 WHERE userid=2 i dont if i have to do sumthing at database or sumwher but i think its in database users thing but i dont want to inset
  17. i get this error when i proposed some one please can anyone tell me what sql i need to put in please thx +1 for for you   QUERY ERROR: Unknown column 'married' in 'field list' Query was UPDATE users SET married=2 WHERE userid=2
  18. <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); if($ir['location'] < 1) { print "Get out of here, you too inexperienced."; $h->endpage(); exit; } print "The Inner City Night Club   Here you can party the night away and forget about how your going to feel in the morning.What would you like to do? Dance Gamble Drink Chat up the girl in the corner Pick a fight Drug Dealer Leave the Club"; $h->endpage(); ?>
×
×
  • Create New...