<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Line Item integration in PHP in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Line-Item-integration-in-PHP/m-p/23069#M12440</link>
    <description>&lt;P&gt;Without going through all of your code, you might first try changing mysql_fetch_array to mysql_fetch_assoc. Also, if you're just going to code for $this-&amp;gt;addLineItem anyway, you may as well use it all the time, it should work the same regardless of how many line items you have (up to 30).&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2012 15:26:00 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2012-02-14T15:26:00Z</dc:date>
    <item>
      <title>Line Item integration in PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Line-Item-integration-in-PHP/m-p/23065#M12438</link>
      <description>&lt;P&gt;I have been pulling my hair out trying to figure out why this does not work!&amp;nbsp; I have tried everything.&amp;nbsp; I found a few posts that were helpful and got me somewhere, but it is STILL not working!&amp;nbsp; I am not getting any error messages, it is just simply not showing up!&amp;nbsp; All other information is passing through just fine!&amp;nbsp; Can some one please help!&amp;nbsp; Here is the code I'm using;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$get_items_sql = "SELECT variable FROM some table;&lt;BR /&gt;$get_items_res = mysqli_query($mysqli, $get_lineitems_sql) or die(mysqli_error($mysqli));&lt;BR /&gt;while ($row = mysql_fetch_array($get_items_res)) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; if ($row['sel_item_id'] == 1) {&lt;BR /&gt;$this-&amp;gt;line_item&amp;nbsp; = $row['sel_item_id'] . '&amp;lt;|&amp;gt;' . substr($row['sel_item_nam'],0,30) . '&amp;lt;|&amp;gt;' . $row['sel_item_size'] . ' &amp;lt;br&amp;gt;Color: ' . $row['sel_item_color'] . '&amp;lt;|&amp;gt;' . $row['sel_item_qty'] . '&amp;lt;|&amp;gt;' . $row['sel_item_price'] . '&amp;lt;|&amp;gt;Y';&lt;BR /&gt;}else {&lt;BR /&gt;$this-&amp;gt;addLineItem($row['sel_item_id'], substr($row['sel_item_nam'],0,30), $row['sel_item_size'] . '&amp;lt;br&amp;gt;Color: ' . $row['sel_item_size'], $row['sel_item_qty'], $row['sel_item_price'], 'Y');&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;foreach( $this as $value )&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ $post_string .= "&amp;amp;x_line_item=" . urlencode( $value ); }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that I am either missing something or I have something I don't need.&amp;nbsp; I have tried changing this $this to $sale, but that doesn't change a thing, actually I can rename $this to $anything and nothing changes!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Suggestions???????&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2012 13:49:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Line-Item-integration-in-PHP/m-p/23065#M12438</guid>
      <dc:creator>eventer74</dc:creator>
      <dc:date>2012-02-14T13:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Line Item integration in PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Line-Item-integration-in-PHP/m-p/23069#M12440</link>
      <description>&lt;P&gt;Without going through all of your code, you might first try changing mysql_fetch_array to mysql_fetch_assoc. Also, if you're just going to code for $this-&amp;gt;addLineItem anyway, you may as well use it all the time, it should work the same regardless of how many line items you have (up to 30).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2012 15:26:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Line-Item-integration-in-PHP/m-p/23069#M12440</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-02-14T15:26:00Z</dc:date>
    </item>
  </channel>
</rss>

