Jump to content

Email contents of table - this one :o)


lakota

Recommended Posts

Hi Everyone!

Sorry! I had started this on another topic, but I couldn't get in an add the extra bit of code :o(

I have a very simple shopping cart, and I'd like to be able to email an order when it gets submitted. Along with the user details.

My code works and everything, I just don't know how to go about emailing each line of the order.

This is the relevant code:

while ($cart_info = mysql_fetch_array($get_cart_res)) {
  $id = $cart_info['id'];
  $item_title = stripslashes($cart_info($cart_info['item_title']);
  $item_price = $cart_info['item_price'];
  $item_qty = $cart_info['sel_item_qty'];
  $total_price = sprintf($item_price * $item_qty);
  $msg = "Online Order \n\n";
  $msg .= "* ".$item_qty." x ".$item_title." at $".item_price." each. \n";
}

Please help  :'(

[attachment deleted by admin]
Link to comment
https://forums.phpfreaks.com/topic/34337-email-contents-of-table-this-one-o/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.