First, an explanation of why your code doesn't work. This:
while($row = mysql_fetch_array($sql_tag_check)){
$d_id = $row["d_id"];
$mem_id = $row["mem_id"];
}
makes no sense, because you're simply overwriting the values of those variables on each iteration of the loop without ever doing anything with the previous values. Thus, the end result is that you only get the values from the last row in the result set. In other words, you might as well get rid of the while() loop altogether and just SELECT that one row instead.
Next, where does $id come from?
Finally, note that Krik's code above is simply going to insert the same data three times in the 'confirmed' table. Is this the desired effect?