bladewolf2010 Posted August 14, 2010 Share Posted August 14, 2010 i keeps telling me "You have already received that award you can only receive each award one time!" the file is <?php include_once (DIRNAME(__FILE__) . '/globals.php'); if($ir['level'] < 100) { print"You must be atleast level 100 to access this area."; print " [url='honorawards.php']Go Back to Honor Awards[/url] "; $h->endpage(); exit; } $q=$db->query("SELECT * FROM honorawards WHERE userid=$userid AND list='level100'",$c); if($db->num_rows($q)) { print "You have already recieved that award you can only recieve each award one time! "; print "[url='honorawards.php']Back to Honor Awards[/url] "; $h->endpage(); } else { $db->query("INSERT INTO honorawards values ($userid,'level100')",$c); $db->query("UPDATE users SET honor=honor+1 WHERE userid=$userid",$c); print "Award Credited!"; print "[url='honorawards.php']Back to Honor Awards[/url] "; } ?> can anyone tell me whats wrong? or give me a hint on whats wrong with it. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted August 14, 2010 Share Posted August 14, 2010 This has been covered before use the search. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.