lakota Posted January 15, 2007 Share Posted January 15, 2007 Hi Everyone!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/34338-emailing-info-in-php/ Share on other sites More sharing options...
lakota Posted January 16, 2007 Author Share Posted January 16, 2007 Hi Guys! :o)I had a reply elsewhere, and I think I have a fix.I just need to either movie my first $msg = or change to $msg .=.Thanks! Link to comment https://forums.phpfreaks.com/topic/34338-emailing-info-in-php/#findComment-161648 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.