ilovephp Posted August 13, 2014 Share Posted August 13, 2014 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 More sharing options...
justsomeguy Posted August 13, 2014 Share Posted August 13, 2014 Things like $accept['success_date'] or $_POST['date'] are just variables. You use the same technique, just add whatever variable you want to the body text. Link to comment Share on other sites More sharing options...
ilovephp Posted August 14, 2014 Author Share Posted August 14, 2014 Hi, thanks for reply. i have done it by using hidden input type and call by $_POST. thanks alot Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now