Re: Email DataBase Results

From: Date: Mon, 21 Apr 2003 21:04:09 +0000
Subject: Re: Email DataBase Results
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144724@lists.php.net to get a copy of this message
Quoting Robert Pruitt <rpruitt@Mid-tn.com>: > $query = "select * from table"; > $result = mysql_db_query("$dbName", $query); > while ($r = mysql_fetch_array($result)) { > $variable1 = $r["variable1"]; > $variable2 = $r["variable2"]; > $variable3 = $r["variable3"]; > } $msg = $variable1; $msg .= $variable2; $msg .= $variable3; $headers = "From: Someone <someemail@somehost.net>"; $headers .= "Reply-To: reply@email.com"; > mail("joecool@example.com", "My Subject", $msg, $headers); > > > What is the best way to include the results of this query into the > mail() function? > > The above trial will not give full results. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#144724) next »