I have problem to send array from database via email. I´m sure may people have got the same problem. I don´t know how to explain more but here is some script.
$sql="SELECT * FROM tb_xxx WHERE id_prd = '$ref_id_prd'";
$result=mysql_db_query($dbname,$sql);
while ($rs=mysql_fetch_array($result)) {
$ref_id_prd=$rs[ref_id_prd];
$prd=$rs[prd];
$price=$rs[price];
text="$prd <br>$price";
}
$recipient = $iemail;
$subject = "my subject";
$headers = "From: [email protected] \n";
$headers .= "Reply-To: [email protected] \n";
$headers .= "MIME-Version: 1.0 \n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1 \n";
$msg = $text;
mail($recipient, $subject, $message, $headers);