time for a new project... i have a server that has a limit to the number of emails it can send out in a day so i thought maybe i should have the forms drop them into the database and email them as one message once a day as a single message broken by line breaks as oposed to a new message each time a form is submitted. my submission form works, as well as my look up. my while statement pulls the data out and if i echo it it shows perfectly. the only touble i am having is when i try to put the array into the mail() function. also it dows email me everytime, just with no content each time.
my while statement is as follows (with the echo left in):
while ($ctform_row = mysql_fetch_array($ctform_query, MYSQL_ASSOC)) {
echo $ctform_row['name']." - ".$ctform_row['email']." - ".$ctform_row['Phone']." - ".$ctform_row['message']." - ".$ctform_row['date']."<br />";
}
i tried to replace the echo with $message and it shows me a line at random in the email. what am i doing wrong? my form mail function is as follows:
mail($destination, $subject, $message);
Where my subject and destination are already set.
$message.=$ctform...