[Mail] Région Répétée et Envoi MAIL..
Bonjour,
J'aimerais pouvoir envoyer le résultat de ma requ^te par mail.
Problème, mon code ne renvoi que la première ligne de ma requête dans l'email !
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| </span><form name="form2" method="post" action="">
<table width="100%" border="0" bordercolor="#CCCCCC" class="cadre7">
<tr bgcolor="#F1F5FA" class="champtexte3">
<td width="18%" class="champtexte3"><div align="left" class="champtexte3">Reference</div></td>
<td width="36%" class="champtexte3"><div align="left">Designation</div></td>
<td width="20%" class="champtexte3">Lot number</td>
<td width="20%" class="champtexte3">Expiration date</td>
<tr bgcolor="#FBFBFB" class="Style16"> </tr>
<?php do { ?>
<tr>
<td height="23" class="champtexte3">'.$reference.'</td>
<td class="champtexte3">'.$designation.'</td>
<td class="champtexte3">'.$lot.'</td>
<td bgcolor="#FF9B9B" class="champtexte3">'.$date.'</td>
<?php } while ($row_R8 = mysql_fetch_assoc($R8)); ?>
</tr>
</table><br>
<br>
<img src="http://idm-dev/images/mas500/Low_logo.gif" width="750" height="9">
</table>
</td>
</tr>
</table>
</body>
</html>
';
if (mail($destinataire,$objet,$message,$headers)) {
header('Location: http://idm-pc-079/MAS500/Navigation_Barcode.php'); |
Merci