Hey how's it going,
I think this is pretty simple.. I'm not quite sure how to do it though. On my site, I have a section where users enter their username and password and in the script I want to be able to get the email address thats associated with that username/password.
I tried something like this..
$emailquery = mysql_query("SELECT email FROM users WHERE loginName = '$loginName' AND pword = '$pword'");
$email = mysql_result($emailquery);
... I thought that would be how I could get the email address into the variable $email but it didn't work, I received this error: Warning: Wrong parameter count for mysql_result()
Any ideas would be great, thanks for your help.