Ciao a tutti
utilizzando questo codice per inviare una email in HTML tramite php
Esiste un modo per poter inserire all'interno dell'invio una query di questo tipocodice:<?php $to = "yourplace@somewhere.com"; $subject = "My HTML email test."; $headers = "From: myplace@here.com\r\n"; $headers .= "Reply-To: myplace2@here.com\r\n"; $headers .= "Return-Path: myplace@here.com\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $message = "<html><body>"; $message .= "<h1> This is a test </h1>"; $message .= "</body></html>"; if ( mail($to,$subject,$message,$headers) ) { echo "The email has been sent!"; } else { echo "The email has failed!"; } ?>
Esiste quindi un modo per farci entrare un ciclo While in un invio unico ?codice:$strSQL="SELECT * FROM order_detail WHERE customer = '$customerid'"; $result=mysql_db_query("xxxxxxxxxxxxx",$strSQL); while ($row=mysql_fetch_array($result)) { $peso = $row[peso]; echo "$peso"; }
grazie a tutti
Giuseppe

Rispondi quotando
