mysql - Tracking Pixel - PHP Issue -


itemprop = "text">

How can I add this code to a statement, where it stops, then volume = 0. < P>

I got this code from here, but it is displaying an additional item after the last one.

For example

  https://www.emjcd.com/u?CID=1521607& OID = 100000393 & amp; Type = type & amp; ITEM1 = 401,000,305,964 & amp; AMT1 = 16.9900 & amp; QTY1 = 1 & amp; ITEM2 = 401,000,305,964 & amp; AMT2 = 0.0000 & amp; QTY2 = 0 ** & amp; Type = 347,774 & amp; Currency = USD & amp; Method = IMG   

added ITEM2 = 401,000,305,964; AMT2 = 0.0000 & amp; QTY2 = 0

Although the database and invoice are only one item

   Global_currency_code, base_currency_code order_currency_code // If this is easy, do so ==> Http://www.emjcd.com/u?AMOUNT= $ _sub; // print_r ($ order); Print_r ($ _ totalData); $ _order = $ this- & gt; Go order (); $ Allitems = $ order- & gt; All items matching (); $ Index = 1; $ CjData = ""; // required format == & gt; & Amp; ITEM1 = 3214sku & amp; AMT1 = 13.49 & amp; QTY1 = 1 & amp; ITEM2 = 6577sku & amp; AMT2 = 7.99 & amp; QTY2 = 2 & amp; Foreign currency (all items in the form of $ $ $ item) {$ cjData. = "& Amp; Items". $ Index "=". $ Item- & gt; GetSku () "& Amp; AMT". $ Index "=". $ Item - & gt; GetPrice () "& amp; Quantity" $ Index "=" $ item, & gt; GetQtyToShip (); .... $ Index ++; }? & Gt; & Lt; Div style = "display: none;" & Gt; & Lt; Img src = "https://www.emjcd.com/u?CID=1&OID=<?php echo $ this-> getOrderId () ;? & gt; Type = 3 & lt; ? Php echo $ CjData;? & Gt; and & amp; CURRENCY = USD & METHOD = IMG "height =" 1 "width =" 20 "& gt; & Lt; / Div & gt;  

Setting your $ index variable before you set it to zero (0) Foreach Loop

When you start one (1) with your $ index variable before going to the foreach loop, it is the fact that you have a line that increases the speed of one, then the total item Counts up to 1, because it will add a value of 1 (a minimum) (this will be the first time created through 2) This is why your value is closed in the $ index.

Comments