<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Foreach &amp; Associative Array Problem' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Foreach &amp; Associative Array Problem' posted on the 'PHP' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Mon, 17 Jun 2013 21:48:45 -0700</pubDate>
    <lastBuildDate>Mon, 17 Jun 2013 21:48:45 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Foreach &amp; Associative Array Problem</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416973/416973/foreach--associative-array-problem/</link>
      <description>This is simple shopping cart, it's using session to carry data.&lt;br /&gt;
It using three different page:&lt;br /&gt;
2.php : Use for passing data to 3.php&lt;br /&gt;
3.php : Display the data, iterate value using foreach().</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416973/416973/foreach--associative-array-problem/</guid>
      <pubDate>Wed, 02 Jun 2010 09:54:29 -0700</pubDate>
      <category>PHP</category>
    </item>
    <item>
      <title>Re: Foreach &amp; Associative Array Problem</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416973/417045/re-foreach--associative-array-problem/#417045</link>
      <description>I think you have an error in your query:&lt;br /&gt;
&lt;br /&gt;
foreach($sizes as $size){&lt;br /&gt;
$prod = mysql_query("...... AND size_id='$size'");&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
I guess this should be:&lt;br /&gt;
foreach($sizes as $size_id =&amp;gt; $size){&lt;br /&gt;
$prod = mysql_query("...... AND size_id='$size_id'");&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Hope this works :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416973/417045/re-foreach--associative-array-problem/#417045</guid>
      <pubDate>Sun, 06 Jun 2010 17:35:21 -0700</pubDate>
      <category>PHP</category>
    </item>
  </channel>
</rss>