<?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%3Adnevels</link>
        <description></description>
        <pubDate>Tue, 21 Apr 2026 03:32:52 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Adnevels&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Display records that start with a number</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241173#post2241173</link>
          <description><![CDATA[<p>So others may benefit, here is what I ended up with that works:</p>
<p>in the <strong>dropdown:</strong></p>
<p><code>&lt;form name="alphasearch" action="ialphalist.php" method="get"&gt;<br />&lt;select style='font-size:26px;height:30px;width:540px;' name='alphasearch' onchange='this.form.submit()'&gt;<br />   &lt;option value=""&gt;Select the First letter of the Business Name&lt;/option&gt;<br />   &lt;option value="[0-9]"&gt;0-9&lt;/option&gt;<br />   &lt;option value="a%"&gt;A&lt;/option&gt;<br />   &lt;option value="b%"&gt;B&lt;/option&gt;<br />   &lt;option value="c%"&gt;C&lt;/option&gt;</code></p>
<p>and changes to <strong>viewer:</strong></p>
<p><code>$regex = $_GET['alphasearch'];<br />  // load records from 'categories'<br />  list($categoriesRecords, $categoriesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'categories',<br />    'perPage'     =&gt; '5',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; true,<br />  'where'       =&gt; "Bus_name REGEXP '^".$regex.".*' OR Bus_name LIKE '".$regex."'",<br />   'orderBy'    =&gt; 'Bus_name',<br />   </code></p>
]]></description>
          <pubDate>Mon, 18 Sep 2017 11:33:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241173#post2241173</guid>
        </item>
                <item>
          <title>Display records that start with a number</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241170#post2241170</link>
          <description><![CDATA[<p>I have a dropdown:</p>
<p><code>&lt;form name="alphasearch" action="ialphalist.php" method="get"&gt;<br />&lt;select style='font-size:26px;height:30px;width:540px;' name='alphasearch' onchange='this.form.submit()'&gt;<br />   &lt;option value=""&gt;Select the First letter of the Business Name&lt;/option&gt;<br />   &lt;option value="REGEXP'^[0-9]'"&gt;0-9&lt;/option&gt;<br />   &lt;option value="a%"&gt;A&lt;/option&gt;<br />   &lt;option value="b%"&gt;B&lt;/option&gt;<br />   &lt;option value="c%"&gt;C&lt;/option&gt;</code></p>
<p>snippet from <strong>ialphalist.php</strong></p>
<p><code>list($categoriesRecords, $categoriesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'categories',<br />    'perPage'     =&gt; '5',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; true,<br />  'where'       =&gt; "Bus_name LIKE '$_GET[alphasearch]'",<br />   'orderBy'    =&gt; 'Bus_name',</code></p>
<p>The letters display results as expected, I am trying to get if the first character is a number to work. I thought that using the "REGEXP" statement was supposed to work, maybe I have it formatted wrong? What do I need to change to get this to work?</p>]]></description>
          <pubDate>Mon, 18 Sep 2017 09:40:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241170#post2241170</guid>
        </item>
                <item>
          <title>Formatting of &apos;where&apos; clause</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241130#post2241130</link>
          <description><![CDATA[<p>I am trying to get the formatting right for my where clause. Here is what I am doing:</p>
<p>I have a dropdown menu populated by the database. I make a selection from the dropdown and "GET" that value to another file.</p>
<p>The second file is the experimental multi record viewer. I am trying to add a where clause to show only records with the same Bus_categories:</p>
<p><code>$Bus_categories = $_GET['Bus_categories'];<br />  list($categoriesRecords, $categoriesMetaData) = getRecordsAPI(array(<br />    'tableName'   =&gt; 'categories',<br />    'perPage'     =&gt; '10',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; true,<br />   'debugSql' =&gt; true,<br /> 'where' =&gt; htmlencode($record['Bus_categories']),</code></p>
<p>Does this make sense?</p>
<p>UPDATE: I tried using the current list page code rather than the Experimental code and it works. Either I needed to do a different way or there is a bug in the experimental code.</p>]]></description>
          <pubDate>Fri, 08 Sep 2017 11:00:32 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241130#post2241130</guid>
        </item>
                <item>
          <title>CMS Builder and if statements</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231724#post2231724</link>
          <description><![CDATA[<p>Thanks for replying Jason. I placed your code in my php file and on clients that have a logo, it DOES show up! Good! However, if the client DOES NOT have a logo I need the 'clientname' to display and it DOES NOT.  I have included the code I am using for the entire page just in case there is something in my code elsewhere that is causing your code to fail.</p>

<p><code>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br /><br />  $libraryPath = 'cmsadmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home1/mydir/public_html/mydir/','','../','../../','../../../');<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 />$info =mysql_real_escape_string ($_GET['clientname']);<br />  // load record from 'client'<br />  list($clientRecords, $clientMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'client',<br />    'where'       =&gt; "`clientname` = '$info'",<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />    'limit'       =&gt; '1',<br />  ));<br />  $clientRecord = @$clientRecords[0]; // get first record<br />  if (!$clientRecord) { dieWith404("Record not found!"); } // show error message if no record found<br /><br />?&gt;<br />&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;<br />&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;<br /> &lt;head&gt;<br />  &lt;title&gt;&lt;/title&gt;<br />  &lt;meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /&gt;<br />  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"&gt;<br />&lt;style&gt;<br />body{<br />    background-image:url('<a href="http://mydomain.com/background.png" rel="nofollow">http://mydomain.com/background.png</a>');<br />    background-size: 100%;<br />    background-attachment:fixed;<br />}<br />&lt;/style&gt;<br /> &lt;/head&gt;<br />&lt;body&gt;<br />&lt;center&gt;<br /><br />&lt;?php if ($clientRecord['level'] == "p"): ?&gt;<br /><br />  &lt;?php if (!$clientRecord['clientlogo']): ?&gt;<br />  <br />    &lt;h2&gt;&lt;?php echo $clientRecord['clientname'];?&gt;&lt;/h2&gt;<br />    <br />  &lt;?php else: ?&gt;<br />  <br /> &lt;?php foreach ($clientRecord['clientlogoupload'] as $index =&gt; $upload): ?&gt;<br />      &lt;a href = "&lt;?php echo $clientRecord['clientweb'];?&gt;"&gt;&lt;img src="&lt;?php echo $upload['thumbUrlPath'] ?&gt;" width="&lt;?php echo $upload['thumbWidth'] ?&gt;" height="&lt;?php echo $upload['thumbHeight'] ?&gt;" alt="" /&gt;&lt;/a&gt;<br />   &lt;?php endforeach ?&gt;  <br />    <br />  &lt;?php endif ?&gt;<br /><br />&lt;?php endif ?&gt;<br /><br /><br />      &lt;a href="geo:&lt;?php echo htmlencode($clientRecord['lat']) ?&gt;,&lt;?php echo htmlencode($clientRecord['lng']) ?&gt;&amp;z=17"&gt;&lt;?php echo htmlencode($clientRecord['clientaddress']) ?&gt;&lt;/a&gt;&lt;br/&gt;<br />       &lt;?php echo htmlencode($clientRecord['clientcity']) ?&gt;, &lt;?php echo htmlencode($clientRecord['clientstate']) ?&gt;&lt;br/&gt;<br />       <br /><br />     &lt;?php echo htmlencode($clientRecord['clientphoneformatted']) ?&gt;&lt;br/&gt;<br />           Open-Days: &lt;?php echo htmlencode($clientRecord['dayop']) ?&gt;&lt;br/&gt;<br />    &lt;?php echo htmlencode($clientRecord['hourop']) ?&gt;&lt;br/&gt;&lt;br/&gt;<br /> &lt;?php foreach ($clientRecord['clientmainimageupload'] as $index =&gt; $upload): ?&gt;<br />        &lt;img src="&lt;?php echo $upload['thumbUrlPath'] ?&gt;" width="&lt;?php echo $upload['thumbWidth'] ?&gt;" height="&lt;?php echo $upload['thumbHeight'] ?&gt;" alt="" /&gt;&lt;br/&gt;<br />&lt;br/&gt;<br />&lt;?php endforeach ?&gt;<br />&lt;/center&gt;<br /><br />       &lt;?php echo htmlencode($clientRecord['clientdesc']) ?&gt;&lt;br/&gt;&lt;br/&gt;<br />       <br /><br />&lt;/body&gt;<br />&lt;/html&gt;</code></p>
]]></description>
          <pubDate>Mon, 09 Sep 2013 11:40:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231724#post2231724</guid>
        </item>
                <item>
          <title>CMS Builder and if statements</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231717#post2231717</link>
          <description><![CDATA[<p>I am attempting to build a detail page and I am confused as to the proper syntax to use when using "if" statements. Would someone be so kind as to show me what I need to do to my code to get it to display properly on the page? Individual items were displaying properly before I attempted to add in the "if" statements. Here is what I have so far:</p>
<p><code>&lt;?php if  echo htmlencode($clientRecord['level'] =='p'): <br /> if echo htmlencode($clientRecord['clientlogo']==''): <br /> &lt;h2&gt; echo htmlencode($clientRecord['clientname']) &lt;/h2&gt;<br /> else:<br /> foreach ($clientRecord['clientlogoupload'] as $index =&gt; $upload):<br />       &lt;a href='($clientRecord['clientweb'])' &lt;img src="&lt;?php echo $upload['thumbUrlPath'] ?&gt;" width="&lt;?php echo $upload['thumbWidth'] ?&gt;" height="&lt;?php echo $upload['thumbHeight'] ?&gt;" alt="" /&gt;&lt;/a&gt;<br />  &lt;?php endforeach ?&gt;<br /> &lt;?php endif; ?&gt;<br />&lt;&lt;More things to do if 'level'=='p'&gt;&gt;</code></p>
]]></description>
          <pubDate>Mon, 09 Sep 2013 07:57:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231717#post2231717</guid>
        </item>
                <item>
          <title>Imported new table in CSV format into database... error</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2230708#post2230708</link>
          <description><![CDATA[<p>Thanks for replying Greg! I have gotten the problem fixed. I purchased the CSV import Add On and after consulting with the folks in the office, I removed/renamed columns that were named reserved names.</p>]]></description>
          <pubDate>Wed, 22 May 2013 10:21:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2230708#post2230708</guid>
        </item>
                <item>
          <title>Imported new table in CSV format into database... error</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2230682#post2230682</link>
          <description><![CDATA[<p>I imported some data as a table into the database. I tried to match all of the columns with the columns in admin. I got this error:</p>
<p><span>MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',,,,,,,,,,,,,,,,,,,,,,,) ORDER BY `order`, num' at line 3 (at old_alias_functions.php line 142 in function mysql_select_query)</span></p>
<p>Can anyone help me with what I need to do?</p>]]></description>
          <pubDate>Tue, 21 May 2013 11:56:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2230682#post2230682</guid>
        </item>
                <item>
          <title>Working with lists</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2230345#post2230345</link>
          <description><![CDATA[<p>I am interested in using CMS Builder to search product lists. I have several hundred clients, each client has hundreds or thousands of products. I want to be able to import each clients list of products (like in a CSV file). I want to be able to search for a single product and retrieve all of the clients that have that product. Can CMS Builder do this?</p>]]></description>
          <pubDate>Tue, 23 Apr 2013 11:34:47 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2230345#post2230345</guid>
        </item>
              </channel>
    </rss>
  