get_ml($id); if ($r["premier"]==1) { $temp=explode("@", $r["list"]); $liste=$temp[0]; } else { $liste=str_replace("@","_",$r["list"]); } header("Content-Type: text/plain"); // header("Content-Type: text/html"); header("Content-disposition: Attachment;filename=\"liste_".$liste.".txt\""); /* header("Pragma: no-cache"); header("Expires: 0"); */ $db->query("SELECT user_subscriber from subscriber_table where list_subscriber='$liste';"); while ($db->next_record()) { echo $db->Record["user_subscriber"]."\r\n"; } ?>