could u please post your code?
but it sounds to me like u ar just doing something like:
- PHP: Select all
$query = "SELECT email FROM sometable WHERE id = '$yourid' ";
$result = mysql_query($query) or die("Couldn't execute query");
$row= mysql_fetch_array($result);
$email = $row["email"];
and that should store your email that is paired with that user id into the variable $email.
not sure if this is what u r looking for