<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>For each Statement help</title>
        <link>https://interactivetools.com/forum/forum-posts.php?For-each-Statement-help-80369</link>
        <description></description>
        <pubDate>Tue, 14 Apr 2026 09:09:02 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;For-each-Statement-help-80369" rel="self" type="application/rss+xml" />

                <item>
          <title>For each Statement help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238072#post2238072</link>
          <description><![CDATA[<p>Thanks for catching those typos.</p>
<p>Will slow down just a little bit with my reply next time to give the code another look over before posting.  :)</p>]]></description>
          <pubDate>Mon, 25 Jan 2016 10:02:26 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238072#post2238072</guid>
        </item>
                <item>
          <title>For each Statement help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238071#post2238071</link>
          <description><![CDATA[<p>Thanks. Its perfect. Just  some typos in the code below, like <span> &lt;?php endforach; ?&gt; and <span>&lt;?php endif ?</span></span></p>
<p>But I was able to catch that. I also updated the first a href to this:</p>
<p>&lt;a href="&lt;?php echo $quick_ship_upload_url; ?&gt;</p>
<p>from this:</p>
<p> &lt;a href="&lt;?php echo $upload['urlPath'] ?&gt;"&gt;</p>
<p>Always a pleasure with such quick responses.</p>]]></description>
          <pubDate>Mon, 25 Jan 2016 09:55:53 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238071#post2238071</guid>
        </item>
                <item>
          <title>For each Statement help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238070#post2238070</link>
          <description><![CDATA[<blockquote>
<p>The problem with this is that the icon (first 'a href') links to the url of the icon image. I want it to link it to the quick_ship upload url (the second 'a href')</p>
</blockquote>
<p>One way to solve this is to loop through the foreach to get the quick_ship upload url and assign it to a unique variable. Then use that variable as needed. <br /><br />Here is the code:<br /><br /></p>
<p><code>&lt;?php if (@$downloadsRecord['quick_ship']): ?&gt;<br />     &lt;?php foreach ($downloadsRecord['quick_ship'] as $index =&gt; $upload): ?&gt;<br />       <strong>&lt;?php $quick_ship_upload_url = $upload['urlPath']; ?&gt;</strong><br />     &lt;?php endforeach; ?&gt;<br /> &lt;?php endif; ?&gt;<br /><br /> &lt;?php foreach ($downloadsRecord['icon_quickship'] as $index =&gt; $upload): ?&gt;<br />     &lt;td valign="top"&gt;<br />     &lt;a href="&lt;?php echo $upload['urlPath'] ?&gt;"&gt;&lt;img src="&lt;?php echo $upload['urlPath'] ?&gt;" alt="" width="&lt;?php echo $upload['width'] ?&gt;" height="&lt;?php echo $upload['height'] ?&gt;" border="0" align="center" style="margin-bottom:5px;"/&gt;&lt;/a&gt;<br />     &lt;?php if (@$downloadsRecord['quick_ship']): ?&gt;<br />         &lt;?php foreach ($downloadsRecord['quick_ship'] as $index =&gt; $upload): ?&gt;<br />             &lt;center&gt;<br />          <strong>   &lt;?php if($quick_ship_upload_url) : ?&gt;</strong><br /><strong>               &lt;a href="&lt;?php echo $quick_ship_upload_url; ?&gt;" target="_blank" class="style10"&gt;Brochure&lt;/a&gt;</strong><br /><strong>             &lt;?php endif; ?&gt;</strong><br />             &lt;/center&gt;<br />         &lt;?php endforeach ?&gt; <br />     &lt;?php endif; ?&gt;<br />     &lt;/td&gt;<br /> &lt;?php endforeach ?&gt;</code></p>
<p>Try this out and let me know if this works. If it doesn't, can you provide more details. </p>]]></description>
          <pubDate>Mon, 25 Jan 2016 09:39:37 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238070#post2238070</guid>
        </item>
                <item>
          <title>For each Statement help</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238069#post2238069</link>
          <description><![CDATA[<p>I have this code:</p>
<p>&lt;?php foreach ($downloadsRecord['icon_quickship'] as $index =&gt; $upload): ?&gt;<br /> &lt;td valign="top"&gt;<br /> &lt;a href="&lt;?php echo $upload['urlPath'] ?&gt;"&gt;&lt;img src="&lt;?php echo $upload['urlPath'] ?&gt;" alt="" width="&lt;?php echo $upload['width'] ?&gt;" height="&lt;?php echo $upload['height'] ?&gt;" border="0" align="center" style="margin-bottom:5px;"/&gt;&lt;/a&gt;<br /><br /><br /> &lt;?php if (@$downloadsRecord['quick_ship']): ?&gt;<br /> &lt;?php foreach ($downloadsRecord['quick_ship'] as $index =&gt; $upload): ?&gt;<br /> &lt;center&gt;<br /> &lt;a href="&lt;?php echo $upload['urlPath'] ?&gt;" target="_blank" class="style10"&gt;Brochure&lt;/a&gt; &lt;/center&gt;&lt;?php endforeach ?&gt; <br /> &lt;?php endif ?&gt;&lt;/td&gt;<br /><br /> &lt;?php endforeach ?&gt;</p>
<p>The problem with this is that the icon (first 'a href') links to the url of the icon image. I want it to link it to the quick_ship upload url (the second 'a href')</p>
<p>How do I rewrite that since they are different for each statements.</p>]]></description>
          <pubDate>Mon, 25 Jan 2016 08:18:27 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238069#post2238069</guid>
        </item>
              </channel>
    </rss>
  