PHP Code:
$invitequery = "SELECT invitekeys FROM hsmemberdb WHERE username = '$username' and ******** = '$password'";
$invite = mysql_query($invitequery);
This code is what is giving you the problem. See, when you call mysql_query(), it actually returns a result set, not the result. Its kind of like an array, that is holding your results (even if its only one result).
So, to get the information from your result set that you want, you will want to use one of the functions that php provides for accessing the array of the result set. I have included a link to one such function:
http://us2.php.net/manual/en/functio...etch-assoc.php
Just take a look at example one. At the bottom is a while loop that goes through the result set, and grabs the information.
If you have any problems, just let me know.