$reward hasn't returned a resource. Your problem is the query. Echo out the query to see if it's what you expect. If so, copy if from the screen and run it in a phpmyadmin sql window - see what happens.
$reward = mysql_query("SELECT * FROM rewards WHERE rewardId = $rewardId");
echo "SELECT * FROM rewards WHERE rewardId = $rewardId";
diafol
Keep Smiling
10,842 posts since Oct 2006
Reputation Points: 1,675
Solved Threads: 1,537
Skill Endorsements: 61
Question Answered as of 1 Year Ago by
diafol