Jump to content
MakeWebGames

honor award


bladewolf2010

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...