Hello,
Thanks for your help but now I'm getting this error can anyone tell me what
"Warning: Server Error in c:\inetpub\wwwroot\ErrAdd_step2.php on line 142" means?
Thanks.
<?php
foreach($formVars["ENG2"]as $value){
$query2="select email from engineers where eng='".$value."'";
$result2 = mysql_query($query2);
//(3)while there are still rows in the result set fetch the current row into the array $row
while($row = mysql_fetch_array($result2)){
//(4)Display the text of each symm
for ($i=0; $i<mysql_num_fields($result2); $i++)
echo $row[$i];
//Print carriage return to neaten the output
$to="<". $row[$i].">";
$subject="RDT Error notification";
$headers = "From: R&D Test Group <corapi_joe@emc.com>";
$headers .="X-Sender: <corapi_joe@emc.com>\r\n";
$headers .="X-Mailer: PHP\r\n";
$headers .="X-Priority: 1\r\n";
$headers .="Return-Path: <corapi_joe@emc.com>\r\n";
$out="Dear ".$value.",\n\n";
$out.="This ".$formVars["TYPE"]." error has been submitted by ".$formVars["TESTR"]." and sent out to be reviewed by ".$formVars["ENG"].".\n\n";
$out.="The RDT number is: ". $RDT."\n\n";
$out.="Status: ".$STAT."\n\n";
$out.="The Error submitted: ".$formVars["ERR"]."\n\n";
$out.="Severity of error: ".$formVars["SEV"]."\n\n";
$out.="Code Level: ".$formVars["CODE"]."\n\n";
$out.="Error occurred on box: ".$formVars["MCC"]."\n\n";
$out.="The OS Host is: ".$formVars["OSH"]."\n\n";
$out.="Listing: ".$formVars["LIST"]."\n\n";
mail($to, $subject, $out);
}}
?>