Hello Everyone,
I am haveing trouble using the results from one query in another query.
$Query= "SELECT email.email, email.id, usermap.id, usermap.email
FROM email
LEFT JOIN usermap ON usermap.email = email.id
WHERE email.email = '$email' ";
$Result = mysql_query( $Query );
$Lookup = "<user_lookup>";
while ( $lookup = mysql_fetch_object( $Result ) )
{
$Lookup .= "<id>".$lookup->id."</id>";
}
$Lookup .= "</user_lookup>";
This query gives me a sigle result and I want to use this result but it is not working..
any suggestions?
I am haveing trouble using the results from one query in another query.
$Query= "SELECT email.email, email.id, usermap.id, usermap.email
FROM email
LEFT JOIN usermap ON usermap.email = email.id
WHERE email.email = '$email' ";
$Result = mysql_query( $Query );
$Lookup = "<user_lookup>";
while ( $lookup = mysql_fetch_object( $Result ) )
{
$Lookup .= "<id>".$lookup->id."</id>";
}
$Lookup .= "</user_lookup>";
This query gives me a sigle result and I want to use this result but it is not working..
any suggestions?