my code's
$output.= '<div class="body">'.$message.'</div>';
echo $output;//output the email body
include_once('simple_html_dom.php');
$html = str_get_html("$output");
foreach($html->find('tr') as $e) {
$b = $e->find('td',1)->plaintext;
$EMailArr[] =$b ;
}
$value_string3= implode("','", $EMailArr);
mysql_query("INSERT INTO test (`a`,`b`,`c`,`d`,`e`,`f`,`g`,`h`,`i`) VALUES($value_string3)");
print "INSERT INTO test (`a`,`b`,`c`,`d`,`e`,`f`,`g`,`h`,`i`) VALUES($value_string3)";
outputs.. Array
(
[0] => MD-MAL_MSAG5200_01 - MD-Malwana - ZTE
[1] => CRITICAL
[2] => MD-MAL_MSAG5200_01 - MD-Malwana - ZTE Isolated
[3] => All customers(49) in above MD-MAL_MSAG5200_01 DSLAM/=3D MSAN
[4] => PENDING
[5] => = FMT-BB(A)
[6] => OPEN
[7] => PENDING
[8] => Informed to DGM :idsmanjuka@gmail.com
)
INSERT INTO test (a
,b
,c
,d
,e
,f
,g
,h
,i
) VALUES(MD-MAL_MSAG5200_01 - MD-Malwana - ZTE',' CRITICAL','MD-MAL_MSAG5200_01 - MD-Malwana - ZTE Isolated','All customers(49) in above MD-MAL_MSAG5200_01 DSLAM/=3D MSAN ','PENDING','= FMT-BB(A)',' OPEN','PENDING','Informed to DGM :idsmanjuka@gmail.com )