<?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%3Adbown</link>
        <description></description>
        <pubDate>Mon, 20 Apr 2026 19:59:59 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Adbown&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>PHP 8.1 error with &quot;Get Options From MySQL Query&quot;</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245962#post2245962</link>
          <description><![CDATA[<p>Thanks Daniel... that change worked.</p>]]></description>
          <pubDate>Wed, 25 May 2022 11:58:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245962#post2245962</guid>
        </item>
                <item>
          <title>PHP 8.1 error with &quot;Get Options From MySQL Query&quot;</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245958#post2245958</link>
          <description><![CDATA[<p>There appears to be a problem using the "Get Options From MySQL Query" when running on PHP 8.1 or PHP 8.0.</p>
<p>I have followed the directions in this post: <a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2232462#post2232462" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2232462#post2232462</a></p>
<p>I have created a section editor for Documents where I can create a document and assign it to a particular Client and then using "Get Options From MySQL Query" I can then select which Facility (of that client) that this document is meant for. It works just like the Make, Model, Bike example described in that other post.</p>
<p>My Get Options From MySQL Query code reads as follows...</p>
<p>SELECT num, title FROM `&lt;?php echo $TABLE_PREFIX ?&gt;facilities` WHERE clientname = '&lt;?php echo $ESCAPED_FILTER_VALUE ?&gt;'</p>

<p>This setup works perfect when I am running on PHP 7.4 but when I switch to PHP 8.1 it fails.</p>
<p>The PHP 8.1 error message I see on the screen is...</p>
<p>Error: in_array(): Argument #2 ($haystack) must be of type array, string given<br />in /home1/XXXXX/public_html/cmsb/lib/menus/default/actionHandler.php on line 115.</p>
<p>Is there a fix I can use for this particular issue?</p>
<p>Cheers,</p>
<p>Dave</p>]]></description>
          <pubDate>Tue, 24 May 2022 15:25:01 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245958#post2245958</guid>
        </item>
                <item>
          <title>Membership Plugin PHP8</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245956#post2245956</link>
          <description><![CDATA[<p>Thank you Daniel.</p>
<p>That worked perfectly!</p>
<p>Cheers,<br />Dave</p>]]></description>
          <pubDate>Tue, 24 May 2022 11:55:51 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245956#post2245956</guid>
        </item>
                <item>
          <title>Membership Plugin PHP8</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245953#post2245953</link>
          <description><![CDATA[<p>I have some code that I used in the Website Membership Plugin that work in PHP 7.3 but not in 8.0.</p>
<p>When using PHP 8.0, when a user logs out of the website the following message appears...</p>
<p>&lt;START&gt;<br />Warning: Trying to access array offset on value of type bool in /home1/XXXXX/public_html/client-area.php on line 18 Fatal error: setPrefixedCookie: Can't set cookie(lastUrl, <a href="https://www.XXXXX.com/client-area.php" rel="nofollow">https://www.XXXXX.com/client-area.php</a>), headers already sent! Output started in /home1/XXXXX/public_html/client-area.php line 18. in /home1/XXXXX/public_html/cmsb/lib/http_functions.php on line 292<br />&lt;END&gt;</p>

<p>The code on the top of the page is as follows:</p>
<p>&lt;START&gt;</p>
<p>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />// load viewer library<br />$libraryPath = 'cmsb/lib/viewer_functions.php';<br />$dirsToCheck = array('/home/eeltd3/public_html/','','../','../../','../../../');<br />foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}<br />if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }<br />if (!@$GLOBALS['WEBSITE_MEMBERSHIP_PLUGIN']) { die("You must activate the Website Membership plugin before you can access this page."); }</p>
<p>// error checking<br />$errorsAndAlerts = alert();<br />if (@$CURRENT_USER) { $errorsAndAlerts .= "You are already logged in! &lt;a href='<a href="https://www.XXXXXX.com/client-area.php" rel="nofollow">https://www.XXXXXX.com/client-area.php</a>'&gt;Click here to continue&lt;/a&gt; or &lt;a href='?action=logoff'&gt;Logoff&lt;/a&gt;.&lt;br/&gt;\n"; }<br />if (!$CURRENT_USER &amp;&amp; @$_REQUEST['loginRequired']) { $errorsAndAlerts .= "Please login to continue.&lt;br/&gt;\n"; }</p>
<p>// save url of referring page so we can redirect user there after login<br />// if (!getPrefixedCookie('lastUrl')) { setPrefixedCookie('lastUrl', @$_SERVER['HTTP_REFERER'] ); }</p>
<p>$CompName = $CURRENT_USER['fullname'];</p>
<p>// load records from 'documents'<br />list($documentsRecords, $documentsMetaData) = getRecords(array(<br />'tableName' =&gt; 'documents',<br />'loadUploads' =&gt; true,<br />'allowSearch' =&gt; false,<br />'where' =&gt; "title = '$CompName'", <br />));</p>
<p>?&gt;<br />&lt;?php if (!$CURRENT_USER) { websiteLogin_redirectToLogin(); } ?&gt;</p>
<p>&lt;END&gt;</p>

<p>Hopefully that is enough to go on for you to help me fix this issue.</p>
<p>Thanks,<br />Dave</p>]]></description>
          <pubDate>Fri, 20 May 2022 15:55:52 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245953#post2245953</guid>
        </item>
                <item>
          <title>Re: [chris] Help pulling information from a 5-tiered menu category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201919#post2201919</link>
          <description><![CDATA[Hi Chris,<br /><br />Sorry about the typo. All is well.<br /><br />Thank you very much for all the great help you've provided over the last few days. It's greatly appreciated!<br /><br /><br />Best Regards,<br />Dave<br />]]></description>
          <pubDate>Thu, 18 Feb 2010 19:01:03 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201919#post2201919</guid>
        </item>
                <item>
          <title>Re: [chris] Help pulling information from a 5-tiered menu category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201916#post2201916</link>
          <description><![CDATA[Hi Chris,<br /><br />Thanks for coming up with a great solution. I tried using the code you provided but am getting an error.<br />You can see the results at the following link:<br />http://www.tutormyself.com/new/page.php?Mathematics-Measurement-Measure-length-42<br /><br />I added the checkbox field using the section editor. See screenshot. I also edited the various pages so that only the 6 exercise pages have the checkbox clicked.<br /><br />Is there another change required, perhaps to the top header code?<br /><br />Cheers,<br />Dave<br />]]></description>
          <pubDate>Thu, 18 Feb 2010 18:17:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201916#post2201916</guid>
        </item>
                <item>
          <title>Re: [chris] Help pulling information from a 5-tiered menu category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201910#post2201910</link>
          <description><![CDATA[Hi Chris,<br /><br />Thanks that worked perfect.<br /><br />I have another issue regarding the menu I was hoping you could help with too. <br /><br />At the end of each menu branch I will be adding a series of exercise pages. Essentially, this makes a 6th tier for the few topic where the tree branches down that far. In most cases however, these exercise pages will be located in the 3rd, 4th or 5th tier.<br /><br />I have added 3 &quot;Exercise&quot; pages to the final section<br />Link: http://www.tutormyself.com/new/page.php?Mathematics-Whole-Numbers-Whole-number-numeracy-Numbers-to-10-Count-objects-to-10-36<br /><br />I have also added 3 &quot;Exercise&quot; pages to the Measurement --&gt; Measure length&quot; section to show you these exercise pages can be higher in the menu structure.<br /><br /><br />I would like for the last series of Exercise pages to be removed from the main drop down navigation menu. If is fine for these pages to be listed in the breadcrumbs and in the children pages list.<br /><br />Our rational is that we want all our students to first visit the page that introduces a math concept before starting the exercises.<br /><br /><br />I have added a checkbox field to the records for each page call Lastmenu. The idea was that if this checkbox is clicked then the Navigation Menu code can detect that and not list the final menu that would only contain exercise pages.<br /><br />I tried this code on the page...<br />&lt;?php if ($categoryRecord['lastmenu'] != 1): ?&gt; CODE TO GENERATE DROP DOWN MENU&lt;?php endif ?&gt;<br /><br />But realized that the categories menu code isn't reading the individual records as it is being called via getCategories rather then getRecords.<br /><br />I don't now the  nuances as to how the codes get called here or even if my technique is possible. <br /><br />Can you please help me get my technique working or advise me on how to code a better approach?<br /><br />Thanks for all your help so far.<br /><br />Cheers,<br />Dave<br />]]></description>
          <pubDate>Thu, 18 Feb 2010 16:35:42 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201910#post2201910</guid>
        </item>
                <item>
          <title>Re: [dbown] Help pulling information from a 5-tiered menu category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201866#post2201866</link>
          <description><![CDATA[Hi Chris,<br /><br />Thanks once again! It's great to see such detailed and quick support for these functions.<br /><br />Your replies regarding items 1 and 3 worked perfectly. These items related to the Immediate Children list and the Hiding of the Home page breadcrumb menu.<br /><br />There might be a glitch in the code for displaying the current category alongside it siblings though.<br /><br />Just in case I didn't describe my issue too well I'll try by example.<br />Link: http://www.tutormyself.com/new/page.php?Mathematics-Whole-Numbers-Whole-number-numeracy-Numbers-to-10-32<br /><br />If you follow the link you will be taken to a page called &quot;Numbers to 10&quot;. This page has a series of other sub pages (i.e children) but it also has 3 other siblings. (i.e. Numbers to 30, Numbers to100, &amp; Numbers to 1000).<br /><br />What I was hoping to see is for the name of this current unit to be visible at the top of the left column menu titled Parent's Children. I was also hoping that the current unit could be bolded as well as this will help my vistors know which unit they are currently viewing.<br /><br />However, the current unit is should not always be located at the top of the list. If we were visit the &quot;Numbers to 30&quot; unit then I would like this unit to be the displayed in the left column list in the second position below &quot;Numbers to 10&quot;.<br /><br />Is this functionality possible?<br /><br />Best Regards,<br />Dave<br />]]></description>
          <pubDate>Tue, 16 Feb 2010 20:06:28 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201866#post2201866</guid>
        </item>
                <item>
          <title>Re: [dbown] Help pulling information from a 5-tiered menu category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201849#post2201849</link>
          <description><![CDATA[Wow, that was incredibly fast a amazingly helpful. I honestly thought that those problems would take a week to get working. Thank you so much.<br /><br />Hopefully you can answer a few more questions for too.<br /><br />Please see Link:<br />http://www.tutormyself.com/new/page.php?Mathematics-Whole-Numbers-Whole-number-numeracy-Numbers-to-10-32<br /><br />This is direct link to a content page that is neither at the top or bottom of the structure.<br /><br />(1) I was hoping you could help me make links within this page to the children of the current page. I have hard coded this menu into the top of the centre column to show you what I was hoping for. Essentially this allow my visitors to navigate down the category structure without having to rely on the over-sensitive menu.<br /><br />(2) Also, regarding the sibling list in the left menu, it would great to actually list the the current unit (bolded) in the correct order that it would normally appear.<br /><br />So on this page the unit &quot;Numbers to 10&quot; would be bolded on the top of the little link list.<br /><br />(3) The breadcrumbs work perfect. I added a link to the Home page in front of the code you provided as it started with &gt;&gt; . <br />I would like the bread crumb list to appear for all pages in the categories listing except for the home page. This is because the home page reads as &quot;Home &gt;&gt; Home&quot;. you can click on the home link to see.<br /><br />Is there an easy way to exclude the breadcrumbs code if the home page is being viewed?<br /><br /><br />I kept the records code in place as I was using it to load the content on the page for each particular page. I have attached my code this time.<br />]]></description>
          <pubDate>Mon, 15 Feb 2010 23:09:07 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201849#post2201849</guid>
        </item>
                <item>
          <title>Help pulling information from a 5-tiered menu category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2201839#post2201839</link>
          <description><![CDATA[Hello, I have a 5-tiered category that I have working with a dynamic menu. <br /><br />I would now like to pull 3 pieces of information from the menu for display on the final page that is currently being viewed.<br /><br />Here is a link that takes you to a view of a page on the 5th tier.<br />Link: http://www.tutormyself.com/new/page.php?Mathematics-Whole-Numbers-Whole-number-numeracy-Numbers-to-10-Count-objects-to-10-36<br /><br />Issue 1) On the top of the left menu I would like the title of the parent category to be dynamically displayed. Currently it is hard coded. If you run over the navigation menu you'll see that we are on the page called &quot;Count objects to 10&quot;. This pages parent is &quot;Numbers to 10&quot;.<br /><br />Issue 2) I would like to list all the siblings on the selected category. These are hard currently coded on the page you are seeing. Please not we will not always be on the 5 tier. Some math categories do not need to go as deep before providing the content pages.<br /><br />The attached screenshot helps to identify the first two issues.<br /><br /><br />Issue 3) I need to list a breadcrumb trail across the top that has links to the detail matching the selected item.<br />I have found this code &quot;&lt;?php echo $categoryRecord['breadcrumb'] ?&gt;&quot; that produces the text that matches my requirement however there are no links and I would like to have a separator between each value.<br /><br /><br />Here is my top of page code<br /><br />&lt;?php<br />  <br />  require_once &quot;/home/bbd/public_html/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($categoryRecordsMenu) = getCategories(array(<br />    'tableName'           =&gt; 'category',<br />    'categoryFormat'      =&gt; 'showall',  // showall, onelevel, twolevel<br />  ));<br /><br />  list($categoryRecords, $categoryMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'category',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    'limit'       =&gt; '1',<br />  ));<br />  $categoryRecord = @$categoryRecords[0]; // get first record<br /><br />  // show error message if no matching record is found<br />  if (!$categoryRecord) {<br />    header(&quot;HTTP/1.0 404 Not Found&quot;);<br />    print &quot;Record not found!&quot;;<br />    exit;<br />  }<br />?&gt;<br /><br /><br /><br />Here is my Navigation Menu Code:<br />&lt;div style=&quot;margin:0px auto;&quot; id=&quot;smoothmenu1&quot; class=&quot;ddsmoothmenu&quot;&gt;<br />  &lt;ul&gt;<br />  &lt;?php foreach ($categoryRecordsMenu as $categoryRecordMenu): ?&gt;<br />    &lt;?php echo $categoryRecordMenu['_listItemStart'] ?&gt;&lt;a href=&quot;&lt;?php echo $categoryRecordMenu['_link'] ?&gt;&quot;&gt;&lt;?php echo $categoryRecordMenu['name'] ?&gt;&lt;/a&gt;&lt;?php echo $categoryRecordMenu['_listItemEnd'] ?&gt;<br />  &lt;?php endforeach; ?&gt;<br />  &lt;/ul&gt;<br />&lt;br style=&quot;clear: left&quot; /&gt;<br />&lt;/div&gt;<br /><br /><br />I have some other code that is being used to display the content for all the tab fields on the page. If you need to see that just let me know.<br /><br />Thanks,<br />Dave<br />]]></description>
          <pubDate>Mon, 15 Feb 2010 17:57:33 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2201839#post2201839</guid>
        </item>
                <item>
          <title>Re: [chris] Coding help with easy multi level nested list flyout menu</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199826#post2199826</link>
          <description><![CDATA[Thank you Chris, that did the trick.<br /><br />Cheers,<br />Dave<br />]]></description>
          <pubDate>Sun, 18 Oct 2009 16:00:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199826#post2199826</guid>
        </item>
                <item>
          <title>Re: [chris] Coding help with easy multi level nested list flyout menu</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199725#post2199725</link>
          <description><![CDATA[Hi Chris,<br /><br />Thanks for hte help.<br /><br />I've tried adding the attachment again. If it doesn't work it can also be seen at <br />http://www.canadasprayerguide.com/WebsiteCMS/menu-structure.gif.<br /><br />I added your code but received an error.<br />It can be seen at Link: http://www.canadasprayerguide.com/WebsiteCMS/menutest2.php<br /><br /><br /><br />The header code is as follows:<br /><br />&lt;?php<br />  <br />  require_once &quot;/home/canadasp/public_html/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($testRecords, $testMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'test',<br />  ));<br /><br />?&gt;<br /><br /><br /><br />I changed the first line of your code to so match my category name. It now reads as follows:<br /><br />  &lt;?php foreach ($testRecords as $categoryRecord): ?&gt;  <br />    &lt;?php echo $categoryRecord['_listItemStart'] ?&gt;  <br />  <br />    &lt;?php if ($categoryRecord['_isSelected']): ?&gt;  <br />      &lt;b&gt;&lt;a href=&quot;&lt;?php echo $categoryRecord['_link'] ?&gt;&quot;&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;&lt;/b&gt;  <br />    &lt;?php else: ?&gt;  <br />      &lt;a href=&quot;&lt;?php echo $categoryRecord['_link'] ?&gt;&quot;&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;  <br />    &lt;?php endif; ?&gt;  <br />  <br />    &lt;?php echo $categoryRecord['_listItemEnd'] ?&gt;  <br />  &lt;?php endforeach; ?&gt;  <br /><br /><br />This version also produces and error that can be seen at Link: http://www.canadasprayerguide.com/WebsiteCMS/menutest3.php<br /><br /><br />Any further help that you can provide would be most appreciated.<br /><br />Best Regards,<br />Dve<br />]]></description>
          <pubDate>Sun, 11 Oct 2009 22:12:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199725#post2199725</guid>
        </item>
                <item>
          <title>Coding help with easy multi level nested list flyout menu</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199662#post2199662</link>
          <description><![CDATA[Hello,<br /><br />I would like some help creating a multi level nested list flyout menu.<br /><br />I have attached a screenshot of my category menu structure as taken from within CMS Builder.<br /><br />If you visit the following link I have a working example of the menu that I would like to produce. It has the exact same menu hierarchy as my CMSBuilder categories. This navigation menu (at the top of the page) is currently hand coded.<br /><br />Link: http://www.canadasprayerguide.com/WebsiteCMS/menutest.php<br /><br />Below the hand coded menu I have a simple code dump from CMS Builder that generates a visual listing of all the entries. The code used for this is as follows:<br /><br />    &lt;?php foreach ($testRecords as $record): ?&gt;<br />      Parent Category: &lt;?php echo $record['parentNum'] ?&gt;&lt;br/&gt;<br />      Name: &lt;?php echo $record['name'] ?&gt;&lt;br/&gt;<br />      _link : &lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['_link'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br />      &lt;hr/&gt;<br />    &lt;?php endforeach; ?&gt;<br /><br />    &lt;?php if (!$testRecords): ?&gt;<br />      No records were found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br /><br /><br />Can you please help me with the coding required to convert my CMS Builder categories into an accurate nested list menu layout. Essentially reproducing the working flyout navigation menu on the top of the page with CMS Builder generated code?<br /><br />Best Regards,<br />Dave<br />]]></description>
          <pubDate>Thu, 08 Oct 2009 17:29:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199662#post2199662</guid>
        </item>
                <item>
          <title>Re: [ross] Adding a next previous navigation block to a News Detail page.</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197254#post2197254</link>
          <description><![CDATA[Hi Ross,<br /><br />Thanks that did the trick!<br />]]></description>
          <pubDate>Thu, 07 May 2009 12:21:42 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197254#post2197254</guid>
        </item>
                <item>
          <title>Adding a next previous navigation block to a News Detail page.</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197246#post2197246</link>
          <description><![CDATA[I have a page newsDetail.php that displays the full content of any news release.<br /><br />Also on this page is a sidebar listing the 10 most recent news releases with links to them.<br /><br />I wish to add to this page a next previous news release navigation block that allow visitors to go back and forth in the news releases using the default display order of each news release to determine positioning.<br /><br />I.e: if we released 3 news releases this week and a visitor was currently looking at the 2nd most recent, he would have the option to to click next to see the most recent or click previous to see the previous (older of the three) news releases. <br /><br />The most recent news release of course would not let you view the next because there is none newer. <br /><br />By clicking previous you could view all previous news releases (1 at a time) going back through the archives. <br /><br />I do not require the running total of news releases to be provided between the next and previous links. (i.e.: no Page 23 of 459).<br /><br />Below is my code and my failed buggy attempt to add the next-previous code block. The page is visible at http://www.canadasprayerguide.com/news_releases/newsDetail.php?Fast-links-to-09-Prairie-grasshopper-forecasts-2=&amp;page=2<br /><br />----------------------------------------<br /><br />&lt;!-- START CONTENT DISPLAY CODE --&gt;<br />&lt;?php<br />  <br />  require_once &quot;/home/canadasp/public_html/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($news_releasesRecords, $news_releasesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'news_releases',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    'limit'       =&gt; '1',<br />  ));<br />  $news_releasesRecord = @$news_releasesRecords[0]; // get first record<br /><br />  // show error message if no matching record is found<br />  if (!$news_releasesRecord) {<br />    print &quot;Record not found!&quot;;<br />    exit;<br />  }<br />?&gt;<br />&lt;!-- END CONTENT DISPLAY CODE --&gt;<br /><br />&lt;!-- START NEXT - PREV CODE --&gt;<br />&lt;?php<br />  <br />  require_once &quot;/home/canadasp/public_html/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($news_releasesNavRecords, $news_releasesNavMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'news_releases',<br />    'perPage'     =&gt; '1',<br />  ));<br />?&gt;<br />&lt;!-- END NEXT - PREV CODE --&gt;<br /><br />&lt;!-- START SIDEBAR CODE --&gt;<br />&lt;?php<br />  <br />  require_once &quot;/home/canadasp/public_html/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($news_releasesSidebarRecords, $news_releasesSidebarMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'news_releases',<br />    'limit'       =&gt; '10',<br />    'allowSearch' =&gt; '0',<br />  ));<br />?&gt;<br />&lt;!-- END SIDEBAR CODE --&gt;<br /><br />-----------------------------<br /><br /><br /><br />&lt;!-- START NEWS RELEASE CONTENT --&gt;<br />&lt;h3&gt;&lt;?php echo $news_releasesRecord['title'] ?&gt;&lt;/h3&gt;<br />&lt;p class=&quot;date&quot;&gt;Posted: &lt;?php echo date(&quot;F j, Y&quot;, strtotime($news_releasesRecord['date'])) ?&gt;&lt;/p&gt;<br />&lt;p class=&quot;deck&quot;&gt;&lt;?php echo $news_releasesRecord['deck'] ?&gt;&lt;/p&gt;<br />&lt;?php echo $news_releasesRecord['content'] ?&gt;<br /><br /><br />    &lt;?php if (!$news_releasesRecord): ?&gt;<br />      No record found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br />&lt;!-- EBD NEWS RELEASE CONTENT --&gt;<br /><br /> <br />  <br />&lt;br&gt;<br /><br />&lt;hr/&gt;<br /><br /><br /><br /><br />&lt;!-- START NEXT - PREV LINKS --&gt;<br />    &lt;?php if ($news_releasesNavMetaData['prevPage']): ?&gt;<br />      &lt;a href=&quot;&lt;?php echo $news_releasesNavMetaData['prevPageLink'] ?&gt;&quot;&gt;&amp;lt;&amp;lt; prev&lt;/a&gt;<br />    &lt;?php else: ?&gt;<br />      &amp;lt;&amp;lt; prev<br />    &lt;?php endif ?&gt;<br /><br />    - page &lt;?php echo $news_releasesNavMetaData['page'] ?&gt; of &lt;?php echo $news_releasesMetaData['totalPages'] ?&gt; -<br /><br />    &lt;?php if ($news_releasesNavMetaData['nextPage']): ?&gt;<br />      &lt;a href=&quot;&lt;?php echo $news_releasesNavMetaData['nextPageLink'] ?&gt;&quot;&gt;next &amp;gt;&amp;gt;&lt;/a&gt;<br />    &lt;?php else: ?&gt;<br />      next &amp;gt;&amp;gt;<br />    &lt;?php endif ?&gt;<br />&lt;!-- END NEXT - PREV LINKS --&gt;<br /><br />&lt;hr/&gt;<br /><br /><br /><br /><br />&lt;!-- START SIDE BAR --&gt;<br /><br />&lt;?php foreach ($news_releasesSidebarRecords as $recordSidebar): ?&gt;<br /><br />&lt;h4 style=&quot;margin-bottom:8px; padding-top: 5px; border-top:1px solid #aaa;&quot;&gt;&lt;a href=&quot;&lt;?php echo $recordSidebar['_link'] ?&gt;&quot;&gt;&lt;?php echo $recordSidebar['title'] ?&gt;&lt;/a&gt;&lt;/h4&gt;<br />&lt;p class=&quot;date&quot; style=&quot;margin-top:5px;&quot;&gt;Posted: &lt;?php echo date(&quot;F j, Y&quot;, strtotime($recordSidebar['date'])) ?&gt;&lt;/p&gt;<br /><br />    &lt;?php endforeach; ?&gt;<br /><br />    &lt;?php if (!$news_releasesSidebarRecords): ?&gt;<br />      No records were found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br />&lt;!-- END SIDE BAR --&gt;<br /><br />-------------------------------<br /><br />Thanks,<br />Dave<br />]]></description>
          <pubDate>Wed, 06 May 2009 15:00:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197246#post2197246</guid>
        </item>
              </channel>
    </rss>
  