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);
$msg = "Customer ID: $row_c[customers_id]\n";
$msg .= "Customer: $row_c[customers_firstname] ";
$msg .= "$row_c[customers_lastname]\n";
$recipient = "$email,[EMAIL PROTECTED]";
$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.
[EMAIL PROTECTED] *
http://xend.net *
602-971-2791
* * *
* * *__ * *
_/ \___ *
* / * \* *
*/ * * \
* */\_ |\
/ \_ / \
/ \____/ \
/ \
/ \
/ \
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php