RE: Anew set of eyes
| From: | Richard Whitney | Date: | Thu, 27 Mar 2003 18:01:57 +0000 |
| Subject: | RE: Anew set of eyes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141271@lists.php.net to get a copy of this message | ||
Can you folks help me out b y looking at this code?
It all of a sudden is not grabbing the email address from the DB, yet
array_count_values displays it nicely.
$sql_c = "SELECT * FROM customers WHERE customers_id = '$customer_id';";//gather
customer info from DB
$result_c = mysql_query($sql_c);
$row_c = mysql_fetch_array($result_c);
$email = "$row_c[customers_email_address]"; // I forgot this part before
$msg = "Customer ID: $row_c[customers_id]\n";
$msg .= "Customer: $row_c[customers_firstname] ";
$msg .= "$row_c[customers_lastname]\n";
$recipient = "$email,rw@xend.net\n";
$mailheaders = "From:
$row_c[customers_firstname] $row_c[customers_lastname]
<$row_c[customers_email_address]>";
$mailheaders .= "Reply-To:
<$row_c[customers_email_address]>";
$subject = "Order from Active Imprints";
mail($recipient, $subject, $msg, $mailheaders) or die ("Couldn't send mail!");
--
Richard Whitney *
Transcend Development
Producing the next phase of your internet presence.
rw@xend.net *
http://xend.net *
602-971-2791
* * *
* * *__ * *
_/ \___ *
* / * \* *
*/ * * \
* */\_ |\
/ \_ / \
/ \____/ \
/ \
/ \
/ \