SQLデータベースから取得したphp形式のテーブルがあり、レコードはテーブル形式で表示されます。データベースから取得したレコードをメールで送信したい
ここに私のphpコードがあります
$productList
$sql =mysql_query("Select * from products where id IN(".implode(",",$where).")")
$productCount=mysql_num_rows($sql);
if ($productCount > 0) {
while($row = mysql_fetch_array($sql)){
$id = $row["id"];
$product_name = $row["item_name"];
$price = $row["price"];
$productList .= '<div class="coupon">
<table width="618" height="201" border="0">
<tr><td colspan="2" rowspan="4" align="left" valign="top">Name '.$product_name.'" </td>
<td> Expires '.$expiry.'</td>
<td width="129" bgcolor="#033B90">Price '.$price.'</td>
</tr>
</table></div>';
商品一覧結果をメールアドレスに送る方法はありますか
<?php echo $dynamicList; ?>