<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title></title>
        <link>https://interactivetools.com/forum/forum-search.php?k=user%3ACollin</link>
        <description></description>
        <pubDate>Fri, 22 May 2026 16:36:03 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3ACollin&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [theclicklab] Sub Category Display - When Empty</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214146#post2214146</link>
          <description><![CDATA[I can't see an attachment, but I think I see where the problem is.  You're actually filtering out when depth == 0 in the foreach loop, so the pagesRecords is not actually empty.  Perhaps try this when you are getting the records:<br /><br /><code>&lt;?php   <br />    // Subcat navigation - First Level <br />    list($pagesRecords, $pagesMetaData) = getCategories(array(     <br />    'tableName'   =&gt; 'pages',   <br />    'selectedCategoryNum' =&gt; '', // defaults to getNumberFromEndOfUrl() <br />    'loadUploads' =&gt; '0', <br />    'where'   =&gt;  'depth &lt;&gt; 0',  // filter out the depth of 0  &lt;----------<br />    // 'debugSql' =&gt;'true', <br />    ));   <br />?&gt;</code><br /><br />Edit:  I just noticed you have further filtering on this line:<br />&lt;?php if($record['hide']==0 &amp;&amp; $record['parentNum']==$selectedCat): ?&gt; <br />We should probably add these filters to the getCategories call too.<br /><br />$selectedCat = pagesRecord['num'] &lt;-- not sure where pagesRecord is defined.<br /><br />It'll probably be more clear when I see the attachment.  Could you try attaching it again?<br /><br />Thanks.<br /><br />Edit2: I just thought of another solution that will require less rewriting of your code:<br /><br /><code>&lt;?php $links = ''; ?&gt;<br /> &lt;?php foreach ($pagesRecords as $record): ?&gt;     <br />     &lt;?php if ($record['depth'] == 0) { continue; } ?&gt;       <br />      &lt;?php if($record['hide']==0 &amp;&amp; $record['parentNum']==$selectedCat): ?&gt;    <br />          &lt;?php $links .= '&lt;li&gt;&lt;a href=&quot;' . $record['_link'] . '&quot;&gt;' . htmlspecialchars($record['name']) . '&lt;/a&gt;&lt;/li&gt;'; ?&gt;<br />      &lt;?php endif ?&gt;    <br />&lt;?php endforeach; ?&gt;  <br /><br />&lt;?php if (!empty($links)): ?&gt; <br />    &lt;h2&gt;In this Section:&lt;/h2&gt;  <br />    &lt;ul&gt;  <br />       &lt;?php echo $links; ?&gt;<br />     &lt;/ul&gt; <br />&lt;?php endif; ?&gt;</code><br />]]></description>
          <pubDate>Tue, 06 Dec 2011 00:41:29 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214146#post2214146</guid>
        </item>
                <item>
          <title>Re: [theclicklab] Sub Category Display - When Empty</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214142#post2214142</link>
          <description><![CDATA[You can do it like this:<br /><br /><code>&lt;?php if (!empty($pagesRecords)): ?&gt;<br />    &lt;h2&gt;In this Section:&lt;/h2&gt; <br />    &lt;ul&gt; <br />        &lt;?php foreach ($pagesRecords as $record): ?&gt;    <br />            &lt;?php if ($record['depth'] == 0) { continue; } ?&gt;      <br />                &lt;?php if($record['hide']==0 &amp;&amp; $record['parentNum']==$selectedCat): ?&gt;   <br />        	     &lt;li&gt;&lt;a href=&quot;&lt;?php echo ($record['_link']);?&gt;&quot;&gt;&lt;?php echo htmlspecialchars($record['name']);?&gt;&lt;/a&gt;&lt;/li&gt;    <br />             &lt;?php endif ?&gt;   <br />         &lt;?php endforeach; ?&gt; <br />     &lt;/ul&gt;<br />&lt;?php endif; ?&gt;</code><br />]]></description>
          <pubDate>Mon, 05 Dec 2011 22:19:01 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214142#post2214142</guid>
        </item>
                <item>
          <title>Re: [theclicklab] Testing for last item in loop</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214136#post2214136</link>
          <description><![CDATA[What I often do for this is use the 'implode' function:<br /><br /><code>&lt;?php<br /><br />$menuItems = array();<br />foreach ($pagesRecords as $record){<br />    $menuItems[] = &quot;&lt;a href=&quot; . $record['_link'] . &quot;&gt; &quot; . $record['name']  . &quot;&lt;/a&gt;&quot;<br />}<br /><br />$menu = implode(' | ', $menuItems);<br /><br />echo $menu;<br />?&gt;</code><br /><br />http://php.net/manual/en/function.implode.php<br />]]></description>
          <pubDate>Mon, 05 Dec 2011 12:04:31 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214136#post2214136</guid>
        </item>
                <item>
          <title>Re: [ht1080z] Related multi level category selection in user input</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214125#post2214125</link>
          <description><![CDATA[Regions contain prefectures which contain cities, correct?<br /><br />It looks like you have these all stored in 1 table?  So the table would look like:<br /><br />Region, Prefecture, City<br />=================<br /><br />Region1, Prefecture1, City1<br />Region1, Prefecture1, City2<br />Region1, Prefecture1, City3<br />Region1, Prefecture2, City1<br />...etc.<br /><br />I would recommend separating it into 3 different tables so it's more normalized and you don't have so much duplicate data.<br /><br />But if we keep the current format, you can query like this:<br /><br /><code>SELECT city FROM location WHERE Region = 'Region1' AND Prefecture = 'Prefecture1'</code><br /><br />I'm not sure how the depth comes into play.  Perhaps you could clarify what your table looks like?<br />]]></description>
          <pubDate>Sat, 03 Dec 2011 13:56:21 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214125#post2214125</guid>
        </item>
                <item>
          <title>Re: [videopixel] Retrieving section title or table name?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214124#post2214124</link>
          <description><![CDATA[If you used a call like:<br /><br /><code>list(records, metaData) = getRecords(options)</code><br /><br />metaData will contain lots of information about the records.<br /><br />Also:<br /><br /><code>showme(records)</code><br /><br />will give you a lot of information about the records.<br />]]></description>
          <pubDate>Sat, 03 Dec 2011 13:47:16 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214124#post2214124</guid>
        </item>
                <item>
          <title>Re: [Toledoh] What about Plugin for SiteMap Generation?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213680#post2213680</link>
          <description><![CDATA[We don't have a plugin for this yet.  But for now you can use this sitemap generation tool:<br /><br />http://enarion.net/tools/phpsitemapng/<br /><br />The generated page can then be added as a link section in cmsb.<br />]]></description>
          <pubDate>Thu, 27 Oct 2011 20:22:22 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213680#post2213680</guid>
        </item>
              </channel>
    </rss>
  