Friends ,,
i want to send a html mail but using a for loop in this mail. without for loop mail send ok. and also for loop work nice if i use it independently. so both setting okey but when i want to send mail contain for loop while make a $message like this
$message = '
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="75%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#333399" >
<td width="24%" height="24" bgcolor="#3399CC"> <div align="center"><strong><font color="#FFFFFF">Type</font></strong></div></td>
<td width="24%" bgcolor="#3399CC"> <div align="center"><font color="#FFFFFF"><strong>ID</strong></font></div></td>
<td width="26%" bgcolor="#3399CC"> <div align="center"><font color="#FFFFFF"><strong>Item
Descriptin</strong></font></div></td>
<td width="26%" bgcolor="#3399CC"> <div align="center"><font color="#FFFFFF"><strong>Qty</strong></font></div></td>
</tr>';
$message .= for ($i=0; $i<count($ID); $i++){
$message .= if ($qty[$i] != 0 or $qty[$i] != NULL or $qty[$i] = "") {
$message .='
<tr>
<td align="center">'.$type[$i].'</td>
<td align="center">'.$ID[$i].'</td>
<td align="center">'.$ItemDescription[$i].'</td>
<td align="center">'.$qty[$i].'</td>
</tr>
';
$message .= }
$message .= }
$message .='
</table>
</body>
</html>
';
here it give error on the line
$message .= for ($i=0; $i<count($ID); $i++){
error is
Parse error: parse error in /home/fif/public_html/addtobug.php on line 78
what's wrong here i am confuse....