Hey, I have a user system at my site, where members can login, and only access some pages if they are logged in. I got the member system from www.rmb-scripting.com. I got a tutorial for a member to change their password by a pincode, and I started to make a script that allows members to change their Pincode. Heres the part I am having problems on:
Okay to start off.
1. There is no mysql_errors (or none that show at this point)
2. The rest of the code works
3. This code above takes the email for the user (and the user is defined by a variable called "$checkuser".
4. This code SHOULD show the email of the user that is logged in, but instead it gives me this:
Does anybody have any ideas why it shows that resource code instead of the users email?
Thanks!
| Code: |
| case 'send':
$checkuser = $logged[username]; $email = mysql_query("SELECT email FROM members WHERE username = '$checkuser' ORDER BY id DESC") or die (mysql_error()); echo "$email"; break; |
Okay to start off.
1. There is no mysql_errors (or none that show at this point)
2. The rest of the code works
3. This code above takes the email for the user (and the user is defined by a variable called "$checkuser".
4. This code SHOULD show the email of the user that is logged in, but instead it gives me this:
| Quote: |
| Resource id #5 |
Does anybody have any ideas why it shows that resource code instead of the users email?
Thanks!
