Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8670295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:40:43+00:00 2026-06-12T18:40:43+00:00

time for a new project… i have a server that has a limit to

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:40:44+00:00Added an answer on June 12, 2026 at 6:40 pm

    Without seeing your code your description leads me to believe that you’re using the assignment operator rather than the concatenation operator.

    i.e. you’re doing this:

    $message = $ctform_row['name']." - ".$ctform_row['email']." - ".$ctform_row['Phone']." - ".$ctform_row['message']." - ".$ctform_row['date']."<br />";
    

    and you should be doing this:

    $message .= $ctform_row['name']." - ".$ctform_row['email']." - ".$ctform_row['Phone']." - ".$ctform_row['message']." - ".$ctform_row['date']."<br />";
    

    Note the .=

    Just make sure you define $message before entering the while loop ($message = "";)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On a new project I have started, XCode has decided that it will compile
Can I make ComboBox from AjaxToolkit make call to server every time new letter
I have some down time and I am think of picking a new project
I just started using the new project type SQL Server 2008 Database. I can
I have been given new project which has many classes and I have to
I've taken on a new project that's already been in development for some time.
I've spent some time with new Database project in VS 2008 and decided to
This happens almost every time I init a new repo. Start a new project.
I'm looking to start a new project to work on in my free time
i am working inapp-purchase project and first time for creating inapp-purchase in new app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.