<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>LeftJoin Question</title>
        <link>https://interactivetools.com/forum/forum-posts.php?LeftJoin-Question-80789</link>
        <description></description>
        <pubDate>Mon, 20 Jul 2026 02:49:22 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;LeftJoin-Question-80789" rel="self" type="application/rss+xml" />

                <item>
          <title>LeftJoin Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239908#post2239908</link>
          <description><![CDATA[<p>Ok, great to hear.  Thanks for the update!</p>]]></description>
          <pubDate>Tue, 13 Dec 2016 16:03:26 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239908#post2239908</guid>
        </item>
                <item>
          <title>LeftJoin Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239907#post2239907</link>
          <description><![CDATA[<p>Hi Dave</p>
<p>I found a way around it so now each section FAQs and Testimonials is using its own Load Records statement and then using a custom Where statement to pull the ProductsNum from the Products section and then relating them to each record to display only the records related to that product.</p>]]></description>
          <pubDate>Tue, 13 Dec 2016 15:55:12 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239907#post2239907</guid>
        </item>
                <item>
          <title>LeftJoin Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239904#post2239904</link>
          <description><![CDATA[<p>also when i turn on Debug here is what is outputted but still wont load any records for the FAQ's and Testimonials</p>

<p>SELECT SQL_CALC_FOUND_ROWS `products`.*,<br /> faqs.`num` as `faqs.num`,<br /> faqs.`products` as `faqs.products`,<br /> faqs.`question` as `faqs.question`,<br /> faqs.`content` as `faqs.content`,<br /> testimonials.`num` as `testimonials.num`,<br /> testimonials.`products` as `testimonials.products`,<br /> testimonials.`name` as `testimonials.name`,<br /> testimonials.`content` as `testimonials.content`<br />FROM `cmsb_products` as `products`<br />LEFT JOIN `cmsb_faqs` AS `faqs` ON products.`num` = faqs.num<br />LEFT JOIN `cmsb_testimonials` AS `testimonials` ON products.`num` = testimonials.num<br /> WHERE (products.num =1) <br /> ORDER BY dragSortOrder DESC</p>]]></description>
          <pubDate>Tue, 13 Dec 2016 13:52:45 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239904#post2239904</guid>
        </item>
                <item>
          <title>LeftJoin Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239903#post2239903</link>
          <description><![CDATA[<p>hi Dave</p>
<p>Well at the moment there isnt any but we are expecting a few in there and the products could be changing a lot so that is why LeftJoin would be better as the FAQ and Testimonials will be linked to each product. they will not be shown on other pages on the product page related to the product.</p>
<p>I have change the associated records to use this but still it wont load any records from the leftJoin tables and i have no idea why it wouldnt be.</p>

<p>// load record from 'products'<br /> list($products, $productsMeta) = getRecords(array(<br /> 'tableName' =&gt; 'products',<br /> 'where' =&gt; 'products.num =' . getNumberFromEndOfUrl(),<br /> 'loadUploads' =&gt; true,<br /> 'allowSearch' =&gt; false,<br /> 'limit' =&gt; '1',<br /> 'leftJoin' =&gt; array('faqs' =&gt; 'num', 'testimonials' =&gt; 'num'),<br /> //'debugSql' =&gt; true, <br /> ));<br /> $products = @$products[0];</p>]]></description>
          <pubDate>Tue, 13 Dec 2016 13:52:00 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239903#post2239903</guid>
        </item>
                <item>
          <title>LeftJoin Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239900#post2239900</link>
          <description><![CDATA[<p>Hi Craig, </p>
<p>How many records do you have in each of the three sections?  If it's not a lot it may be easier to just load all the records from all three sections and loop over them.  Also it's a best practice to associate records by recordNum instead of "title" so that if the title changes (or is corrected) the records are still associated (since the record num won't change).</p>
<p>Hope that helps!</p>]]></description>
          <pubDate>Tue, 13 Dec 2016 09:53:28 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239900#post2239900</guid>
        </item>
                <item>
          <title>LeftJoin Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239893#post2239893</link>
          <description><![CDATA[<p>Hi guys</p>
<p>I have this section called Products which lists details about all the products.</p>
<p>Then there are 2 other multi sections for FAQ's and Testimonials.</p>
<p>I have the FAQ's and testimonials setup with a list item for each so that each of the FAQ and Testimonials can be associated with products.</p>
<p>I want to be able to pull the details from each of them and then display with the related product page.</p>
<p>How can i put all the related records for each of the FAQ and Testimonials.?</p>
<p>This is what i have but it wont pull the related records</p>

<p>// load record from 'products'<br /> list($products, $productsMeta) = getRecords(array(<br /> 'tableName' =&gt; 'products',<br /> 'where' =&gt; 'products.num =' . getNumberFromEndOfUrl(),<br /> 'loadUploads' =&gt; true,<br /> 'allowSearch' =&gt; false,<br /> 'limit' =&gt; '1',<br /> 'leftJoin' =&gt; array('faqs' =&gt; 'title', 'testimonials' =&gt; 'title'),<br /> //'debugSql' =&gt; true, <br /> ));<br /> $products = @$products[0];</p>]]></description>
          <pubDate>Sat, 10 Dec 2016 02:20:58 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239893#post2239893</guid>
        </item>
              </channel>
    </rss>
  