Jump to content

get echo value to be displayed in mail body


ilovephp

Recommended Posts

Here is the code for displaying the success approval date whichretrieved from database:-

<?php      if(isset($_POST['find']))     {         $dateid = $_POST['find'];         $sql = "SELECT * FROM application as app             INNER JOIN success_app as appdate              ON app.app_id = appdate.app_id              WHERE app.app_id = '$appid' AND app.date_id = '$dateid'";           $result = mysql_query($sql);         echo "accept date:"."<br/>";         while($accept = mysql_fetch_assoc($result))         {             echo $accept['success_date'];         }     } ?>

how can i get the $accept['success_date']; to be displayed in my php mailer body if my codeis as below:-

$mailbody = $mailbody .  "Success date :".$_POST['date']."n";  

i have tried with hidden input to get the value to be displayed, but failed to do so.what about array? anyone can assist me on this?thank you so much.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...