<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Need if then statement for filtering</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Need-if-then-statement-for-filtering-80880</link>
        <description></description>
        <pubDate>Wed, 11 Nov 2026 15:41:17 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Need-if-then-statement-for-filtering-80880" rel="self" type="application/rss+xml" />

                <item>
          <title>Need if then statement for filtering</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240324#post2240324</link>
          <description><![CDATA[<p>Great! </p>
<p>I'm glad that worked. </p>
<p>Let me know if you need a hand with anything else.</p>]]></description>
          <pubDate>Tue, 14 Mar 2017 08:58:51 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240324#post2240324</guid>
        </item>
                <item>
          <title>Need if then statement for filtering</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240322#post2240322</link>
          <description><![CDATA[<p>Thanks. I worked with the code and it works perfectly. After I called all the records. I added the extra if statement as if the record has a quickship, it should show and that worked nicely. I dont have all the extra products only the ones with the record. Thanks.</p>]]></description>
          <pubDate>Tue, 14 Mar 2017 07:50:27 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240322#post2240322</guid>
        </item>
                <item>
          <title>Need if then statement for filtering</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240320#post2240320</link>
          <description><![CDATA[<p>Hi there.</p>
<p>Thanks for posting.</p>
<p>What I'd like to start out with is confirming that you are actually uploading the PDF's to records in your "brands" section.</p>
<p>I see that you load that at the top of your page ($brandsRecords).</p>
<p>If I am on the right track here, the logic will be something along these lines:</p>
<p><code>&lt;?php foreach ($brandsRecords as $brand): ?&gt;<br />&lt;?php if ($brand['pdf']): ?&gt;<br />DISPLAY DOWNLOAD LINK<br />&lt;?php endif ?&gt;<br />&lt;?php endforeach; ?&gt;</code></p>
<p>Keep in mind that this is a really basic overview of the code you'll need to use so there will likely be adjustments.</p>
<p>Do you at least get the idea of what I am aiming or here?</p>
<p>Basically, I am looping through each record from the "brands" table and seeing if a file has been uploaded to it.  Note that I am assuming your upload field is called "pdf".</p>
<p>Let me know any questions.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Mon, 13 Mar 2017 11:27:04 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240320#post2240320</guid>
        </item>
                <item>
          <title>Need if then statement for filtering</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240316#post2240316</link>
          <description><![CDATA[<p>I have a page that has downloads based on the brand. Each item in the brand has different downloads. It is a lighting company that has a brand family, items of that family and each item has downloads.</p>
<p>Now I have some items available for quickship. I want the items of each brand to have the quickship pdf download to show on a page.</p>
<p><a href="http://www.axislighting.com/CMS/downloadsList-qs2.php?brand=Beam4%20LED" rel="nofollow">http://www.axislighting.com/CMS/downloadsList-qs2.php?brand=Beam4%20LED</a></p>
<p>This Brand Beam4 has quickship, but only for some item styles like in this instance the Recessed. But on that page it is showing all the items under this family whether there is a download or not. Can i write a statement to show only the items of brand that have the download? Here is my file. Basically, I want that if there is no download then it shouldnt show that item.</p>]]></description>
          <pubDate>Mon, 13 Mar 2017 07:44:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240316#post2240316</guid>
        </item>
              </channel>
    </rss>
  