0
$pieces = explode(",", $sentto);
for($i=0;$i<count($pieces)-1;$i++)
{
$fileatt = $_FILES['attachcopy']['tmp_name'];
$fileatt_type = $_FILES['attachcopy']['type'];
$fileatt_name = $_FILES['attachcopy']['name'];
$pieces[$i]=$pieces[$i].",";
$sel="insert into newmessage set sendto='".$pieces[$i]."',
sendfrom='".$almemailid."',
subject='".$subject."',
message='".$color."',
attachment='".$fileatt_name."',
updateddate = now()";
$selqur=mysql_query($sel) or die("Error (" . mysql_errno() .")" . mysql_error());
$lastid_id = mysql_insert_id();
$folderpath = "Attachment/".$lastid_id."".$fileatt_name;
move_uploaded_file($_FILES["attachcopy"]["tmp_name"],$folderpath);
}
上述程序在单一EMAILID运行良好,发送到附件, 我有附件发送更多的EMAILID有只发送周华健给所有的人,attachmnet 仅发送第一EMAILID不为别的。 我有存储所有附件在foldr和附件文件与自动增量id concodinate。 在上面循环第一次只存储在文件夹粘贴保存在文件夹中电子邮件附件
请正确填写问题。 – Vikash 2010-11-10 06:54:48
我不明白一件事! – stillstanding 2010-11-10 06:57:36