So, I'm having a problem with my MySQL query. It has only been displaying the first result from a list of data from a variable. Here is what I've got
$Data='1,2,3'
$fetch = mysql_query("SELECT email FROM data WHERE uid IN ($Data) ");
if (mysql_num_rows($fetch)) {
    $emaildata = mysql_fetch_assoc($fetch);
    foreach($emaildata as $fetch2){
        echo $fetch2;
    }
} else {
    echo Failed;
}
Now, it only pulls the first result of the 3 instead of each of the 3's separate emails. Any help is appreciated, kinda new to this whole thing.
 
     
     
     
    