<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>List Records by Additional Selection</title>
        <link>https://interactivetools.com/forum/forum-posts.php?List-Records-by-Additional-Selection-80755</link>
        <description></description>
        <pubDate>Wed, 07 Oct 2026 08:40:17 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;List-Records-by-Additional-Selection-80755" rel="self" type="application/rss+xml" />

                <item>
          <title>List Records by Additional Selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239788#post2239788</link>
          <description><![CDATA[<p>Perfect, that fixed it, although I had to remove the ' around uk_network_availability in order to make it work, otherwise no records were displayed. Thanks so much Greg.</p>]]></description>
          <pubDate>Thu, 17 Nov 2016 00:42:09 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239788#post2239788</guid>
        </item>
                <item>
          <title>List Records by Additional Selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239765#post2239765</link>
          <description><![CDATA[<p>Hey Mark, </p>
<p>You  just need to tweek your MySQL statement slightly:</p>
<p><code>`category` LIKE '%Superfast Broadband%' AND (`uk_network_availability` LIKE '%Significant National Coverage%' OR `uk_network_availability` LIKE '%Patchy National Coverage%' )<br /></code></p>
<p>There where the two issues:</p>
<ul><li>You must declare the field you're searching each time, or the second part of the statement will be ignored. </li>
<li>You should wrap the <em>OR</em> statement in brackets, or you'll end up with all records that have significant national coverage, and then all records that have a category of superfast broadband and significant national coverage. </li>
</ul><p>Cheers,</p>
<p>Greg</p>]]></description>
          <pubDate>Tue, 15 Nov 2016 13:00:24 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239765#post2239765</guid>
        </item>
                <item>
          <title>List Records by Additional Selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239756#post2239756</link>
          <description><![CDATA[<p>Yes that worked, brilliant! :)</p>
<p>Now what if I wanted to get a bit more complicated with it and display all the records for 'uk_network_availability' that matched either 'Significant National Coverage' OR 'Patchy National Coverage'?</p>
<p>I tried doing this:</p>
<p>AND uk_network_availability LIKE '%Significant National Coverage%' OR '%Patchy National Coverage%'</p>
<p>But it still only saw the records with 'Significant National Coverage' selected and ignored those with 'Patchy National Coverage' selected.</p>]]></description>
          <pubDate>Mon, 14 Nov 2016 08:01:04 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239756#post2239756</guid>
        </item>
                <item>
          <title>List Records by Additional Selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239743#post2239743</link>
          <description><![CDATA[<p>Hi there.</p>
<p>Thanks for posting.</p>
<p>You can combine your two "where" with an "AND" like this:</p>
<p><code>'where'       =&gt; " category LIKE '%Superfast Broadband%' AND uk_network_availability LIKE '%Significant National Coverage%' ",</code></p>
<p>Could you give that a shot and let me know how you make out.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Thu, 10 Nov 2016 12:56:25 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239743#post2239743</guid>
        </item>
                <item>
          <title>List Records by Additional Selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239740#post2239740</link>
          <description><![CDATA[<p>At present I've written a short PHP script that just outputs several products (records) from a specific category and then orders them by price, which starts with the following code:</p>
<p><code>&lt;?php<br />  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */<br />  require_once "/*****/isp_list/system/lib/viewer_functions.php";<br /><br />  list($isp_listRecords, $isp_listMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'isp_list',<br />    'limit'     =&gt; '4',<br />    'loadCreatedBy' =&gt; false,<br />    'where'       =&gt; " category LIKE '%Superfast Broadband%' ",<br />    'orderBy'       =&gt; 'sfbb_cheap_total_price+0',<br />  ));<br /><br />?&gt;<br />    &lt;?php foreach ($isp_listRecords as $record): ?&gt;<br /><br />..all the usual field output follows.<br /></code></p>
<p>Now at present I define which records to show by using 'where' to select from a specific 'category' (field), but I'd also like to add in an additional criteria. Essentially I have another field called 'uk_network_availability' that is a list field and includes three options:</p>
<p>Significant National Coverage<br />Patchy National Coverage<br />Niche / Area Specific</p>
<p>So what I want to do is show the records from my "Superfast Broadband" category as above, but now only display those that have the "Significant National Coverage" selection under the 'uk_network_availability' list field. I tried doing this by simply adding a second 'where' call (see below) after the first one for 'category', but it then seemed to ignore the original 'where' category call. I'm sure there's a simple way to do this?</p>
<p><code>    'where'       =&gt; " uk_network_availability LIKE '%Significant National Coverage%' ", <br /></code></p>]]></description>
          <pubDate>Thu, 10 Nov 2016 06:56:40 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239740#post2239740</guid>
        </item>
              </channel>
    </rss>
  