Guest_imported
New member
- Jan 1, 1970
- 0
I was wondering if anybody could help me out. I am putting together a string which will be emailed. The problem I am having is putting a for loop in there while following php rules on concatination for the string. I am not exactly sure how to do this and if anybody could help me out it would be very much appreciated. Thanks in advance for any help.
$mailcontent = "Order#: ".$orderid."\n"
."Date Y-M-D: ".$date."\n"
."Sale Total: $ ".$total_sale."\n"
for ($p=0; $p<$num_results; $p++){
$itemNum = stripslashes($row["itemNum"]);
$item = stripslashes($row["item"]);
$quantity = stripslashes($row["quantity"]);
."Item#: ".$itemNum."\n"
."Items: ".$item."\n"
."Quantity: ".$quantity."\n"
}
."First Name: ".$firstName."\n"
."Last Name: ".$lastName."\n"
."Address: ".$address."\n";
$mailcontent = "Order#: ".$orderid."\n"
."Date Y-M-D: ".$date."\n"
."Sale Total: $ ".$total_sale."\n"
for ($p=0; $p<$num_results; $p++){
$itemNum = stripslashes($row["itemNum"]);
$item = stripslashes($row["item"]);
$quantity = stripslashes($row["quantity"]);
."Item#: ".$itemNum."\n"
."Items: ".$item."\n"
."Quantity: ".$quantity."\n"
}
."First Name: ".$firstName."\n"
."Last Name: ".$lastName."\n"
."Address: ".$address."\n";