send php table to an email address -
i have table in php format retrieved sql database, records display in table format, want mail records retrieved database
here php code
$productlist $sql =mysql_query("select * products 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>';
is there way send product list result mail address
<?php echo $dynamiclist; ?>
refer mail
function:
mail('to@example.org', 'subject', $dynamiclist);
Comments
Post a Comment