get data for email

[php]include_once(“includes/authenticate_admin.php”);
?>

<?php include_once("includes/connection.php"); switch (@$_GET[e]) { case "2": { @$res=mysql_query("select * from freight where id='".@$_GET[val]."'",$con) or die("false..."); @$_POST=mysql_fetch_array($res,MYSQL_ASSOC); print ""; break; } case "3": { if($res=mysql_query("update freight set price='".@$_POST[price]."',terms='".@$_POST[terms]."',status_note='".@$_POST[status_note]."',status='1' where id='".@$_GET[val]."'",$con) or die("false")) { @$datae=mysql_fetch_array(mysql_query("select email from login where id='".@$_POST[owner]."'",$con),MYSQL_ASSOC); @$data=mysql_fetch_array(mysql_query("select order_no from freight where id='".@$_GET[val]."'",$con),MYSQL_ASSOC); include_once("includes/mail.php"); $mailer = new MicroMailer(); $mailer->subject = "Your Order is Accepted"; $mailer->message = "Your Order is Accepted ******************************************************************* Airway Bill No.- ".@$_PRINT[order_no]." Name.- ".$_value[order_no]." Your Order is Accepted. ******************************************************************* Login to see more details. If you have any questions please email [email protected] or call 787-550-0017. Thank You for your business. Parcel One Express."; $email=explode(",",@$datae[email]); foreach ($email as $value) { $mailer->to = $value; $mailer->send(); } print "The details was Successfully Updated !"; @$res=mysql_query("select * from freight where id='".@$_GET[val]."'",$con) or die("false..."); @$_POST=mysql_fetch_array($res,MYSQL_ASSOC); print ""; } break; } } ?>
Order No. <?php print @$_POST[order_no]; ?>
Pickup Date : <?php print @$_POST[pickup]; ?>
Delivery Date : <?php print @$_POST[delivery]; ?>
Price ($):
Payment Terms (Days):
Status Note : <?php print @$_POST[status_note]; ?>
 
[/php]

The obvious question here would be… what problem are you having?

Sorry i started topic again becuase of not describing. But I am trying to display order_no in email alert. If is use $_Get[val] it displays user id but if i change to order_no it will not display. troubling times this problem has given me for 5 days,.

sorry everyone, i have email alerts working now.

thanks anyways

Sponsor our Newsletter | Privacy Policy | Terms of Service