When I am trying to run a while loop to determine if one of the (many) email addresses inside my "table_1" match any of the email addresses inside my "table_2". But it did not work .Hersr is my code :
while($row2 = mysql_fetch_array($get_names2_res)) {
while($row = mysql_fetch_array($get_names_res)) {
$friend_email = stripslashes($row['friend_email']);
$users_email = stripslashes($row2['email']);
if ($users_email == $friend_email) {
echo"Yeah we found that name ($users_email)";
}
}
}
It only reads one email at a time, but what I need is to read all the emails at one time.
Can any one help me ?