<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1020833" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1020833</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-loop-over-array#comment-1127986</link>
    <description> &lt;p&gt;That works great! Thanks.&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2003 05:16:59 +0000</pubDate>
 <dc:creator>TonyMontana</dc:creator>
 <guid isPermaLink="false">comment 1127986 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-loop-over-array#comment-1127985</link>
    <description> &lt;p&gt;Oh, flash...&lt;/p&gt;
&lt;p&gt;try this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$curObj &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$curObj &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$val&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$output &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$val&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2003 05:01:59 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1127985 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-loop-over-array#comment-1127981</link>
    <description> &lt;p&gt;Mark, that&#039;s not evaluating correctly for Flash.&lt;br /&gt;
It&#039;s something to do with this line, I think:&lt;/p&gt;
&lt;p&gt;$output .= &quot;&amp;amp;curObj[$key]=$val&quot;;&lt;/p&gt;
&lt;p&gt;If you can figure that one out.&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2003 04:13:11 +0000</pubDate>
 <dc:creator>TonyMontana</dc:creator>
 <guid isPermaLink="false">comment 1127981 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-loop-over-array#comment-1127978</link>
    <description> &lt;p&gt;All the fields in a recordset?&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$curObj &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$result&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$curObj &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$val&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$output &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;amp;curObj[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;]=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$val&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 28 Mar 2003 00:58:01 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1127978 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-loop-over-array#comment-1127974</link>
    <description> &lt;p&gt;I think that will loop over the rows in a query. Whereas, I want to loop over all the data from the columns, of one row, in this case. &lt;/p&gt;
&lt;p&gt;$curObj = mysql_fetch_array($result); // one row&lt;/p&gt;
&lt;p&gt;$mediaID = $curObj[&#039;mediaID&#039;]; // one column, multiple columns...&lt;br /&gt;
$output .= &quot;&amp;amp;curObj&quot; .  &quot;mediaID=&quot; . $mediaID;&lt;/p&gt;
&lt;p&gt;echo $output;&lt;/p&gt;
&lt;p&gt;Which gets tedious when you have a lot of columns, and is not reusable....any other suggestions?&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Mar 2003 22:17:43 +0000</pubDate>
 <dc:creator>TonyMontana</dc:creator>
 <guid isPermaLink="false">comment 1127974 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-loop-over-array#comment-1127973</link>
    <description> &lt;p&gt;while ($row = mysql_fetch_array($result)) {&lt;br /&gt;
    $output .= &quot;&amp;amp;curObj&quot;. = $curObj[&#039;$row&#039;];&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;echo $output;&lt;/p&gt;
&lt;p&gt;I think?&lt;/p&gt;
 </description>
     <pubDate>Thu, 27 Mar 2003 21:39:02 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1127973 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
