Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: Simple user rating system v2 ok cool raid
  2. Re: Make Money from Your Site with these tips ! how do i get more ppl on my site
  3. Re: [mccode] staff applications can u talk threw where i put the staff apps accept box on v2
  4. Re: Simple user rating system v2 what links give example plz
  5. Re: Free Hosting Sites it is mate and u can also make a free reseller thts when im heading for
  6. Re: Simple user rating system v2 were abouts do i add images and whats the code for images
  7. Re: Simple user rating system v2 thnx
  8. Re: Simple user rating system v2 do u have thumbs up pictures plz and add them
  9. Re: [mccode] Mining mod is there a way u can replace it with out droping them
  10. Re: Simple user rating system v2 i coverted this plz thank me   <?php session_start(); require "globals.php"; $ID = mysql_real_escape_string($_GET['ID']); $action = mysql_real_escape_string($_GET['action']); switch($action) { case 'goodrating': good_rating(); break; case 'badrating': bad_rating(); break; } if(!$ID) { echo "Error - invaild player id."; $h->endpage(); exit; } if(!$action) { echo "Error - invaild action."; $h->endpage(); exit; } function good_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = mysql_real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_array($result)) { $gratings = $row['rating']; } mysql_query("UPDATE users SET rating = {$gratings}+1 WHERE userid='{$ID}'"); mysql_query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a good rating"; } } else { die("You can only rate once a day."); } } function bad_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = mysql_real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_array($result)) { $bratings = $row['rating']; } mysql_query("UPDATE users SET rating = {$bratings}-1 WHERE userid='{$ID}'"); mysql_query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a bad rating"; } } else { die("You can only rate once a day."); } } $h->endpage(); ?>
  11. Re: [mccode] Mining mod this sounds stupid but how do i delete them
  12. Re: [mccode] Mining mod still dont work a sql is wrong
  13. Re: [mccode] staff applications V2 STAFF APPS V2 <?php session_start(); require "globals.php"; if($_POST['app']) { mysql_query("INSERT INTO staffapps VALUES('',$userid,'{$_POST['pos']}','{$_POST['app']}')", $c) or die("Your staff application could not be processed. Make sure you have filled out the form completely"); print "Staff application processed. You will receive a mail in less than 3 days with our decision. Good luck"; } else { print "<h3>Staff Application</h3> <form action='staffapps.php' method='post'> Position: <select name='pos'><option value='2'>Admin</option><option value='3'>Secretary</option><option value='5'>Assistant</option></select></br> Why do you deserve the position?: <textarea rows='7' cols='40' name='app'>{$_GET['app']}</textarea> <input type='submit' value='Submit Application' /></form>"; } $h->endpage(); ?>
  14. Re: [mccode] Streets for v2.0 you are suppose to call the file street.php not streets
  15. Re: Simple user rating system v2 thnx isomer shall i post it on here
  16. Re: Simple user rating system v2 another error Fatal error: Call to a member function query() on a non-object in /home/eyers/public_html/rating.php on line 39
  17. Re: Simple user rating system v2 i converted this to v2 but get error Fatal error: Call to undefined method database::real_escape_string() in /home/eyers/public_html/rating.php on line 5 <?php session_start(); require "globals.php"; $ID = $db->real_escape_string($_GET['ID']); $action = $db->real_escape_string($_GET['action']); switch($action) { case 'goodrating': good_rating(); break; case 'badrating': bad_rating(); break; } if(!$ID) { echo "Error - invaild player id."; $h->endpage(); exit; } if(!$action) { echo "Error - invaild action."; $h->endpage(); exit; } function good_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = $db->real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = $db->query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = $db->fetch_array($result)) { $gratings = $row['rating']; } $db->query("UPDATE users SET rating = {$gratings}+1 WHERE userid='{$ID}'"); $db->query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a good rating"; } } else { die("You can only rate once a day."); } } function bad_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = $db->real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = $db->query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = $db->fetch_array($result)) { $bratings = $row['rating']; } $db->query("UPDATE users SET rating = {$bratings}-1 WHERE userid='{$ID}'"); $db->query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a bad rating"; } } else { die("You can only rate once a day."); } } $h->endpage(); ?> wats wrong with it
  18. Re: Money Gym Warning: Missing argument 4 for headers::userdata(), called in /home/eyers/public_html/mgym.php on line 58 and defined in /home/eyers/public_html/header.php on line 136 also repeats menu twice
  19. Re: Simple user rating system v2 Warning: include(mysql.php) [function.include]: failed to open stream: No such file or directory in /home/eyers/public_html/rating.php on line 10 Warning: include(mysql.php) [function.include]: failed to open stream: No such file or directory in /home/eyers/public_html/rating.php on line 10 Warning: include() [function.include]: Failed opening 'mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eyers/public_html/rating.php on line 10 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/eyers/public_html/rating.php on line 12
  20. Re: Simple user rating system v2 can someone fix error plz
  21. Re: Free Hosting Sites want a free reseller well why not try http://bryansoft.com/member.php?action=register&referrer=259 very good u can make a website there
  22. Re: Money Gym this will be good when v2
  23. Re: [Free] [V1] Random Explore Mod +1
  24. Re: [mccode] crystal slots o lol well aquib just gave me an illegal mod
  25. Re: Simple user rating system v2 Parse error: syntax error, unexpected T_IF in /home/eyers/public_html/rating.php on line 29
×
×
  • Create New...