<?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%3AMohaukla</link>
        <description></description>
        <pubDate>Sun, 17 May 2026 22:24:01 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3AMohaukla&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Customized Form Mail Script</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242127#post2242127</link>
          <description><![CDATA[<p>Hey, thanks Leo!</p>
<p>I need to clarify here.</p>
<p>There are 2 sections that are calling for a loop</p>
<p>#1</p>
<p><code>foreach ($reservation_fieldsRecords as $record): <br />$echo htmlencode($record['title'])=$_POST ['echo htmlencode($record['form_field'])']; <br />endforeach</code></p>
<p>and #2</p>
<p><code>foreach ($reservation_fieldsRecords as $record): <br />$body.='echo htmlencode($record['title']) : '.$echo htmlencode($record['form_field']) ."\n";<br />endforeach</code></p>
<p>in which your code seems to apply to the second loop but there is no "_post" in that one</p>
<p>Here is yours:</p>
<p><code>foreach ($reservation_fieldsRecords as $record){ $body .= htmlencode($record['title']) . ': ' . htmlencode(<span style="color:#ff0000;">$_POST</span>[$record['form_field']]) . "\n";}</code></p>
<p>I took out the "_post" and came up with:</p>
<p><code>foreach ($reservation_fieldsRecords as $record){ $body .= htmlencode($record['title']) . ': ' . htmlencode($record['form_field']) . "\n";}</code></p>
<p>I tried to apply this logic to the first loop but my program keeps telling me its wrong. <strong>Can you format the first loop section and I will test the script?</strong></p>
<hr /><p>And a couple questions I have are... </p>
<p>Does the php ignore the whitespace between some characters? ...  "$body <strong>.</strong>" or " <strong>.</strong> htmlencode($record['form_field']) <strong>. </strong>"</p>
<p><br />Is your code missing something to format the lines correctly in the second loop?...  $body .<strong><span style="color:#ff0000;">'</span> </strong>to create $body.=<strong>'</strong>Departure City: '.$departure."\n";<br />I did not see it in there but when I added it my program said there was an error.</p>
<p>Thanks</p>
<p>Michael</p>]]></description>
          <pubDate>Tue, 22 May 2018 16:42:36 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242127#post2242127</guid>
        </item>
                <item>
          <title>Customized Form Mail Script</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242096#post2242096</link>
          <description><![CDATA[<p>The goal should be to allow the client to add/subtract/edit fields in the system and have them show in the form. The form on the page I'm working on works just fine. But the mail script needs to reflect the same fields.</p>
<p>I need correct code for getting the script to work with the CMS.</p>
<p>Thanks</p>
<p>Michael</p>]]></description>
          <pubDate>Sat, 19 May 2018 08:55:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242096#post2242096</guid>
        </item>
                <item>
          <title>Customized Form Mail Script</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242082#post2242082</link>
          <description><![CDATA[<p>I am working on letting my client edit fields on their reservations form.</p>
<p>I have everything working properly in the form and the fields appear properly.</p>
<p>But the mail script is breaking.</p>
<p>Original Script</p>
<p><code>&lt;?php<br /><br /><br /><br />$tour=$_POST['tour'];<br />$name=$_POST['name'];<br />$email=$_POST['email'];<br />$phone=$_POST['phone'];<br />$address=$_POST['address'];<br />$citystatezip=$_POST['citystatezip'];<br />$roomates=$_POST['roomates'];<br />$departure=$_POST['departure'];<br />$smoking=$_POST['smoking'];<br />$message=$_POST['message'];<br /><br /><br /><br /><br /><br />$to='<span style="color:#ff0000;">EMAIL ADDRESS</span>';<br /><br />$headers = 'From: '.$name."\r\n" .<br /> 'Reply-To: '.$email."\r\n" .<br /> 'X-Mailer: PHP/' . phpversion();<br />$subject ='Reservation From Rileytours.com';<br />$body='You have a reservation from Rileytours.com.'."\n\n";<br /><br />$body.='Tour Name: '.$tour."\n";<br />$body.='Name: '.$name."\n";<br />$body.='Email: '.$email."\n";<br />$body.='Phone Number: '.$phone."\n";<br />$body.='Address: '.$address."\n";<br />$body.='City/State/Zip: '.$citystatezip."\n";<br />$body.='Roomate Name(s): '.$roomates."\n";<br />$body.='Departure City: '.$departure."\n";<br />$body.='Smoking Preference: '.$smoking."\n";<br />$body.='Special Request: '."\n".$message."\n";<br /><br />if(mail($to, $subject, $body, $headers)) {<br /> die("&lt;img src=\"img/check green sm.png\" align=\"left\" hspace=\"5px\" /&gt;&lt;strong&gt;Thanks. Your reservation has been sent and someone will contact you with a confirmation shortly. &lt;br/&gt;<br />    If you need immediate assistance please contact us at the phone numbers below.&lt;/strong&gt;"); <br />} else {<br /> die('Oops! Your email failed for some reason. Please try it again and see if it will go through.&lt;br/&gt;<br /> If it does not work again please contact us directly.');<br />}<br /><br />?&gt;</code></p>
<p>This is what I have but I know that I have the code from the CMS assembled wrong</p>
<p><code>&lt;?php<br /> <br />  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('D:/HostingSpaces/rileytours/rileytours.com/wwwroot/','','../','../../','../../../');<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 /><br />  list($reservation_fieldsRecords, $reservation_fieldsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'reservation_fields',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; false,<br />  ));<br />  <br />$email=$_POST['email'];<br /><span style="color:#3366ff;"><strong>foreach ($reservation_fieldsRecords as $record): </strong></span><br /><span style="color:#3366ff;"><strong>$echo htmlencode($record['title'])=$_POST ['echo htmlencode($record['form_field'])']; </strong></span><br /><span style="color:#3366ff;"><strong>endforeach</strong></span><br />$departure=$_POST['departure'];<br />$smoking=$_POST['smoking'];<br />$message=$_POST['message'];<br /><br /><br /><br /><br />$to='<span style="color:#ff0000;">EMAIL ADDRESS</span>';<br /><br />$headers = 'From: '.$fullname1."\r\n" .<br /> 'Reply-To: '.$email."\r\n" .<br /> 'X-Mailer: PHP/' . phpversion();<br />$subject ='Reservation From Rileytours.com';<br />$body='You have a reservation from Rileytours.com.'."\n\n";<br /><br /><br />$body.='Email: '.$email."\n";<br /><span style="color:#3366ff;"><strong>foreach ($reservation_fieldsRecords as $record): </strong></span><br /><span style="color:#3366ff;"><strong>$body.='echo htmlencode($record['title']): '.$echo htmlencode($record['form_field']) ."\n";</strong></span><br /><span style="color:#3366ff;"><strong>endforeach</strong></span><br />$body.='Departure City: '.$departure."\n";<br />$body.='Smoking Preference: '.$smoking."\n";<br />$body.='Special Request: '."\n".$message."\n";<br /><br /><br /><br />if(mail($to, $subject, $body, $headers)) {<br /> die("&lt;img src=\"img/check green sm.png\" align=\"left\" hspace=\"5px\" /&gt;&lt;strong&gt;Thanks. Your reservation has been sent and someone will contact you with a confirmation shortly. &lt;br/&gt;<br />    If you need immediate assistance please contact us at the phone numbers below.&lt;/strong&gt;"); <br />} else {<br /> die('Oops! Your email failed for some reason. Please try it again and see if it will go through.&lt;br/&gt;<br /> If it does not work again please contact us directly.');<br />}<br /><br />?&gt;</code></p>
<p>How should these lines be written?</p>
<p>Thanks for your help</p>
<p>Michael</p>
]]></description>
          <pubDate>Thu, 17 May 2018 21:04:41 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242082#post2242082</guid>
        </item>
                <item>
          <title>Been Here Before</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241948#post2241948</link>
          <description><![CDATA[<p>OK so please guide me through this process.</p>
<p>Thanks<br />Michael</p>]]></description>
          <pubDate>Tue, 10 Apr 2018 14:22:09 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241948#post2241948</guid>
        </item>
                <item>
          <title>Been Here Before</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241946#post2241946</link>
          <description><![CDATA[<p>No Luck ....</p>
<p>Any ideas?</p>
<p>Michael</p>]]></description>
          <pubDate>Tue, 10 Apr 2018 14:09:42 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241946#post2241946</guid>
        </item>
                <item>
          <title>Been Here Before</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241944#post2241944</link>
          <description><![CDATA[<p>OK </p>
<p>One step closer.</p>
<p>We got rid of the errors but it seems to skip over your code altogether.</p>
<p>Here is what I have: (the main chunks LOL)</p>
<p><code>  // load records from 'resource_links_docs'<br />  list($resource_links_docsRecords, $resource_links_docsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'resource_links_docs',<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br />  <br />  $records = array_groupBy($resource_links_docsRecords, 'category:label');<br /><br /><br /><br />    &lt;h1&gt;Leo's Code&lt;/h1&gt;<br />   &lt;? foreach($records as $categoryLabel =&gt; $recordsByCategory): // HTML for the category label?&gt;<br />    &lt;h4&gt;&lt;p&gt;&lt;?php echo ($categoryLabel) ?&gt;&lt;/p&gt;&lt;/h4&gt;<br />   &lt;? foreach($recordsByCategory as $record): ?&gt;<br />    &lt;ul&gt;<br /> &lt;li&gt;&lt;?php echo ($record['title']) // HTML for each record ?&gt;&lt;/li&gt;<br />    &lt;/ul&gt;<br />   &lt;? endforeach ?&gt;<br />   &lt;hr/&gt;<br />   &lt;? endforeach ?&gt;<br /><br />    &lt;h1&gt;Regular Viewer Code&lt;/h1&gt;<br />    &lt;?php foreach ($resource_links_docsRecords as $record): ?&gt;<br />    <br />      Record Number: &lt;?php echo htmlencode($record['num']) ?&gt;&lt;br/&gt;<br />      Title: &lt;?php echo htmlencode($record['title']) ?&gt;&lt;br/&gt;<br />      Category (values): &lt;?php echo join(', ', $record['category:values']); ?&gt;&lt;br/&gt;<br />      Category (labels): &lt;?php echo join(', ', $record['category:labels']); ?&gt;&lt;br/&gt;<br />      Link: &lt;?php echo htmlencode($record['link']) ?&gt;&lt;br/&gt;<br /><br />      &lt;hr/&gt;<br />    &lt;?php endforeach ?&gt;<br /><br />    &lt;?php if (!$resource_links_docsRecords): ?&gt;<br />      No records were found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br /></code></p>
<p>You can see the result here:</p>
<p><a href="http://homevaluerealestate.biz/resourcesTEST.php" rel="nofollow">http://homevaluerealestate.biz/resourcesTEST.php</a></p>
<p>Thanks </p>
<p>Michael</p>]]></description>
          <pubDate>Tue, 10 Apr 2018 13:04:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241944#post2241944</guid>
        </item>
                <item>
          <title>Been Here Before</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241942#post2241942</link>
          <description><![CDATA[<p>Hey Leo</p>
<p>I changed it to <em>$categoryLabel which now it is showing the category "number" but not the actual title of the category.</em></p>
<p><em>Both the category list and the docs/links list have a "title"</em></p>
<p><em>And the docs/links section does have a "category" field as it is a list pulling the of "category" list into it. (see attached image)</em></p>
<p><em>So I am seeing where you're going but something is still missing.<br /></em></p>
<p>What do you think?</p>
<p>Michael</p>]]></description>
          <pubDate>Tue, 10 Apr 2018 12:31:57 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241942#post2241942</guid>
        </item>
                <item>
          <title>Been Here Before</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241936#post2241936</link>
          <description><![CDATA[<p>Ok</p>
<p>I have broken out what you did so that I can have more control over how I display it</p>
<p>But I'm getting errors and I am hoping it's because of how I am adding the strings.</p>
<p><code>   &lt;? foreach($records as $categoryLabel =&gt; $recordsByCategory): // HTML for the category label?&gt;<br />    &lt;h4&gt;&lt;p&gt;&lt;?php echo ($categoryLabel['lables']) ?&gt;&lt;/p&gt;&lt;/h4&gt;<br />   &lt;? foreach($recordsByCategory as $record): ?&gt;<br />    &lt;ul&gt;<br /> &lt;li&gt;&lt;?php echo ($record['title']) // HTML for each record ?&gt;&lt;/li&gt;<br />    &lt;/ul&gt;<br />   &lt;? endforeach ?&gt;<br />   &lt;hr/&gt;<br />   &lt;? endforeach ?&gt;</code></p>
<p>The errors I'm getting back are:</p>
<p><strong>Warning: Illegal string offset 'lables' in /home/homevaluere/public_html/resourcesTEST.php on line 34</strong></p>
<ul><li>Warning: Illegal string offset 'title' in /home/homevaluere/public_html/resourcesTEST.php on line 37 R</li>
<li>Notice: Undefined index: title in /home/homevaluere/public_html/resourcesTEST.php on line 37</li>
<li>Notice: Undefined index: title in /home/homevaluere/public_html/resourcesTEST.php on line 37</li>
<li>AND SO ON .....</li>
</ul><p>I am closer than I was  ...</p>

<p>What is the problem? (Page attached)</p>
<p>Michael</p>]]></description>
          <pubDate>Fri, 06 Apr 2018 18:08:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241936#post2241936</guid>
        </item>
                <item>
          <title>Been Here Before</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241932#post2241932</link>
          <description><![CDATA[<p>So what does that look like in my situation here.</p>
<p>I am not experienced enough to see that work out in code.</p>
<p>Thanks<br />Your help is greatly appreciated.</p>
<p>Michael</p>]]></description>
          <pubDate>Fri, 06 Apr 2018 14:07:10 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241932#post2241932</guid>
        </item>
                <item>
          <title>Been Here Before</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241929#post2241929</link>
          <description><![CDATA[<p>I have created a list of categories and inserted it into a list of documents/links.</p>
<p>So my loading code looks like this:</p>
<p><code>  // load records from 'resource_links_docs'<br />  list($resource_links_docsRecords, $resource_links_docsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'resource_links_docs',<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));</code></p>
<p>So I want to layout the doc/link lists by category:</p>
<p>First Category<br />Doc<br />Link<br />Link<br />Doc<br />Etc...</p>
<p>Second Category<br />Doc<br />Doc<br />Link<br />Doc<br />Etc...</p>
<p>And So on</p>
<p>So I have these variables:</p>
<p><code>&lt;?php echo htmlencode($record['title']) ?&gt;<br />      &lt;?php echo join(', ', $record['category:values']); ?&gt;<br />      &lt;?php echo join(', ', $record['category:labels']); ?&gt;<br />      &lt;?php echo htmlencode($record['link']) ?&gt;<br />       &lt;?php foreach ($record['document'] as $index =&gt; $upload): ?&gt;<br />        &lt;?php echo htmlencode($upload['urlPath']) ?&gt;<br />       &lt;?php endforeach ?&gt;<br /></code></p>
<p>And would like to set it up like this:</p>
<p><code><span style="color:#ff6600;">&lt;foreach...&gt;</span><br />&lt;h4&gt;<span style="color:#ff6600;">&lt;category:labels&gt;</span>&lt;/h4&gt;<br /> <span style="color:#ff6600;">&lt;if upload then...&gt;</span> <br />   &lt;?php foreach ($record['document'] as $index =&gt; $upload): ?&gt;<br />     &lt;a href="&lt;?php echo htmlencode($upload['urlPath']) ?&gt;"&gt;&lt;p&gt;&lt;?php echo htmlencode($upload['filename']) ?&gt;&lt;/p&gt;&lt;/a&gt;<br />   &lt;?php endforeach ?&gt;    <br /> <span style="color:#ff6600;">&lt;else&gt;</span><br />  &lt;a href="&lt;?php echo htmlencode($record['link']) ?&gt;" target="_blank"&gt;&lt;p&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/p&gt;&lt;/a&gt;<br />&lt;?php endforeach ?&gt;<br /></code></p>
<p>So I know this has been done by me before but I can not remember and can not seem to find the correct example to work off of.</p>
<p>Thanks for your help with this.</p>
<p>Michael</p>]]></description>
          <pubDate>Thu, 05 Apr 2018 15:12:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241929#post2241929</guid>
        </item>
                <item>
          <title>Simple upload in a list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241783#post2241783</link>
          <description><![CDATA[<p>I know I am over thinking this but I cannot get an upload to show on my list</p>
<p>The link to the page sorts the list by a particular "type"</p>
<p>....resource_list.php?type=5 </p>
<p>Then I have the type list called and the documents themselves called</p>
<p><code>  list(<strong>$resource_documentsRecords</strong>, $resource_documentsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'resource_documents',<br />    'loadUploads' =&gt; false,<br />    'where'       =&gt; 'resource_type = '.mysql_escape(@$_REQUEST['type']),<br />    'allowSearch' =&gt; true,<br />  ));<br />  <br />    list(<strong>$resource_documentstypeRecords</strong>, $resource_documentsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'resource_documents',<br />    'where'       =&gt; 'resource_type = '.mysql_escape(@$_REQUEST['type']),<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />    'limit'       =&gt; '1',<br />  ));<br /><br />  $resource_documentsRecord = @$resource_documentstypeRecords[0]; // get first record<br />  if (!$resource_documentsRecord) { dieWith404("Record type not found!"); } // show error message if no record found</code></p>
<p>My section is looping the document names and inserting the upload link for each document</p>
<p>The loop works to show the names of the documents</p>
<p>But something is breaking the page in the loop when I inject the upload code</p>
<p><code>&lt;?php foreach ($resource_documentsRecords as $record): ?&gt;<br /> &lt;?php $uploads = getUploads($options['resource_documents'], 'uploads', $record['num']); ?&gt;<br />       &lt;ul class="h3"&gt;<br />           &lt;li&gt;&lt;?php foreach ($uploads as $upload): ?&gt;&lt;a href="&lt;?php echo $uploads['urlPath'] ?&gt;" target="_blank"&gt;&lt;?php endforeach ?&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/a&gt;&lt;/li&gt;<br />       &lt;/ul&gt;  <br />&lt;?php endforeach ?&gt;</code></p>
<p>My upload is called<strong> 'resource_upload'</strong> but I am unable to figure out where that goes into the mix</p>

<p>Thanks for your help </p>
<p>Michael</p>

]]></description>
          <pubDate>Sat, 03 Mar 2018 08:20:54 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241783#post2241783</guid>
        </item>
                <item>
          <title>Show States if a record exists </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236069#post2236069</link>
          <description><![CDATA[<p>Oops sorry I do need your help to write the expression correctly.</p>
<p>I know I'm close but. ..</p>

<p>Thanks</p>
<p>Michael</p>]]></description>
          <pubDate>Fri, 13 Feb 2015 10:39:12 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236069#post2236069</guid>
        </item>
                <item>
          <title>Show States if a record exists </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236055#post2236055</link>
          <description><![CDATA[<p>Ok Claire,</p>
<p>The client has added another filter to the mix. They have asked that there be just a list of "agricultural" or "recreational" dealers.</p>
<p>I created a new separate list "dealer_types"(multiple check boxes) and associated it in the dealers section using the field name "type".</p>
<p>What I BELIEVE I need is a "if" {  continue;  } statement to filter only 1 type of dealer by the record number. Or an "if" "else" statement maybe..</p>
<p><code>                            &lt;?php foreach ($canadian_statesRecords as $key=&gt;$record): ?&gt;<br />                                       &lt;? // load records from 'dealers'<br />                                         list($dealersRecords, $dealersMetaData) = getRecords(array(<br />                                         'tableName'   =&gt; 'dealers',<br />                                         'loadUploads' =&gt; false,<br />                                         'allowSearch' =&gt; false,<br />                                         'where' =&gt; "providences LIKE '%\t". mysql_escape($record['num']) . "\t%'", <br />                                          ));<br />                                        ?&gt;<br />                            &lt;?php if(empty($dealersRecords)) { continue; } ?&gt;<br />                                &lt;section class="toggle&lt;?php if ($key == 0) { echo " active"; } ?&gt;"&gt;<br />                                    &lt;label&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/label&gt;<br />                                    &lt;div class="toggle-content"&gt;<br />                                    &lt;?php foreach ($dealersRecords as $dealer): ?&gt;<br />                                    <span style="color:#ff0000;"><strong>&lt;?php IF DEALER "TYPE" NUM = ANYTHING BUT "1" { continue; } ?&gt;</strong></span> <span style="color:#ff0000;">//  I will assign which record number I want to filter</span> <br />                                    &lt;div class="panel-body"&gt;<br />                                      &lt;strong&gt;&lt;?php echo htmlencode($dealer['title']) ?&gt;&lt;/strong&gt;&lt;br/&gt;<br />                                             &lt;p&gt;<br />                                              &lt;?php echo htmlencode($dealer['address']) ?&gt;&lt;br/&gt;<br />                                              &lt;?php echo htmlencode($dealer['phone']) ?&gt;&lt;br/&gt;<br />                                              Contact: &lt;?php echo htmlencode($dealer['contact_name']) ?&gt;<br />                                             &lt;/p&gt;<br />                                         &lt;hr&gt;<br />                                     &lt;/div&gt;<br />                                     &lt;?php endforeach ?&gt;<br />                                    &lt;/div&gt;<br />                                &lt;/section&gt;<br />                            &lt;?php endforeach ?&gt;</code></p>
<p>Let me know what you think,</p>
<p>Thanks<br />Michael</p>]]></description>
          <pubDate>Thu, 12 Feb 2015 19:45:55 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236055#post2236055</guid>
        </item>
                <item>
          <title>explode looping too much</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235993#post2235993</link>
          <description><![CDATA[<p>Im not sure what is going with my code but it seems to be looping on and on. See the "Features" section of this page:</p>
<p><a href="http://tebben.us.r16.millsys.org/product.php?Tandem-Axle-Hydraulic-Lift-30" rel="nofollow">http://tebben.us.r16.millsys.org/product.php?Tandem-Axle-Hydraulic-Lift-30</a></p>
<p><code>  // load record from 'products'<br />  list($productsRecords, $productsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'products',<br />    'where'       =&gt; whereRecordNumberInUrl(0),<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />    'limit'       =&gt; '1',<br />  ));<br />  $productsRecord = @$productsRecords[0]; // get first record<br />  if (!$productsRecord) { dieWith404("Record not found!"); } // show error message if no record found<br /><br />-------------------------------------------------------------------------------<br /><br />                             &lt;ul class="portfolio-details"&gt;<br />                                &lt;li&gt;<br />                                    &lt;p&gt;&lt;strong&gt;Features:&lt;/strong&gt;&lt;/p&gt;<br />                                    &lt;ul class="list list-skills icons list-unstyled list-inline"&gt;<br />                                    &lt;?php foreach ($productsRecord as $record): ?&gt;<br />                                    &lt;?php $lines = explode("\n", $productsRecord['product_features']); ?&gt;<br />                                    &lt;?php foreach ($lines as $line) : ?&gt;<br />                                     &lt;?php if($line != ''): ?&gt;<br />                                 <br />                                        &lt;li&gt;&lt;i class="fa fa-check-circle"&gt;&lt;/i&gt;&lt;?php echo $line; ?&gt;&lt;/li&gt;<br />                                        <br />                                    <br />                                    &lt;?php endif; ?&gt;<br />                                    &lt;?php endforeach; ?&gt;<br />                                    &lt;?php endforeach ?&gt;<br />                                    &lt;/ul&gt;<br />                                &lt;/li&gt;<br />                            &lt;/ul&gt; <br /></code></p>

<p>Let me know what you think.</p>
<p>Thanks</p>
<p>Michael</p>
]]></description>
          <pubDate>Sat, 07 Feb 2015 16:28:52 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235993#post2235993</guid>
        </item>
                <item>
          <title>Show States if a record exists </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235992#post2235992</link>
          <description><![CDATA[<p>Thanks Claire</p>
<p>Works awesome!</p>]]></description>
          <pubDate>Sat, 07 Feb 2015 16:15:30 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235992#post2235992</guid>
        </item>
                <item>
          <title>Show States if a record exists </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235990#post2235990</link>
          <description><![CDATA[<p>Do you need anything else from me?</p>]]></description>
          <pubDate>Fri, 06 Feb 2015 15:06:31 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235990#post2235990</guid>
        </item>
                <item>
          <title>Show States if a record exists </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235985#post2235985</link>
          <description><![CDATA[<p>In this case I used a pull down multiple choice list. But I usually use check boxes.  Are there separate ways to express both?</p>]]></description>
          <pubDate>Wed, 04 Feb 2015 16:17:07 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235985#post2235985</guid>
        </item>
                <item>
          <title>Show States if a record exists </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235978#post2235978</link>
          <description><![CDATA[<p>It is one of two lists that is used inside the distributors list (see attached)</p>
<p>So there is the loop of States with a loop of distributors inside of it and then there will also be a loop of Providences with a loop of distributors right afterward. So you are only seeing the code for the first loop.</p>
<p>I was hoping to replicate the solution for the Providences once I had that. Just needed to get it working properly. </p>

<p>Hope that helps <br />Thanks</p>]]></description>
          <pubDate>Wed, 04 Feb 2015 10:44:21 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235978#post2235978</guid>
        </item>
                <item>
          <title>Show States if a record exists </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235969#post2235969</link>
          <description><![CDATA[<p>OK I think my 'where' statement must be wrong. If I comment the 'where' statement out, I get the list of ALL possible distributors in each state. When I set the line back then I get NO states showing at all. So it must no be sorting the records correctly.</p>
<p>Any ideas?</p>]]></description>
          <pubDate>Tue, 03 Feb 2015 20:51:41 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235969#post2235969</guid>
        </item>
                <item>
          <title>Show States if a record exists </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235960#post2235960</link>
          <description><![CDATA[<p>I have a list of distributors populating from a list of states.</p>
<p><code>  list($statesRecords, $statesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'states',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; false,<br />  ));<br /><br /><br />-------------------------------------------------------------<br /><br /><br /><br /><br />&lt;?php foreach ($statesRecords as $key=&gt;$record): ?&gt;<br />  &lt;div class="panel-group secundary" id="accordion2"&gt;<br />    &lt;div class="panel panel-default"&gt;<br />      &lt;div class="panel-heading"&gt;<br />       &lt;h4 class="panel-title"&gt;<br />        &lt;a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse2&lt;?php echo $key;?&gt;"&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/a&gt;<br />       &lt;/h4&gt;<br />      &lt;/div&gt;<br />      &lt;div id="collapse2&lt;?php echo $key;?&gt;" class="accordion-body collapse"&gt;<br />          &lt;? // load records from 'distributors'<br />          list($distributorsRecords, $distributorsMetaData) = getRecords(array(<br />            'tableName'   =&gt; 'distributors',<br />            'loadUploads' =&gt; false,<br />            'allowSearch' =&gt; false,<br />            'where' =&gt; "states = '". $record['num'] . "'",<br />             ));<br />           ?&gt;<br />          &lt;?php foreach ($distributorsRecords as $distributor): ?&gt;<br />            &lt;div class="panel-body"&gt;<br />              &lt;strong&gt;&lt;?php echo htmlencode($distributor['title']) ?&gt;&lt;/strong&gt;&lt;br/&gt;<br />              &lt;p&gt;&lt;?php echo htmlencode($distributor['address']) ?&gt;&lt;br/&gt;<br />                 &lt;?php echo htmlencode($distributor['phone']) ?&gt;&lt;br/&gt;<br />                 Contact: &lt;?php echo htmlencode($distributor['contact_name']) ?&gt;<br />              &lt;/p&gt;<br />                                         &lt;hr&gt;<br />             &lt;/div&gt;<br />          &lt;?php endforeach ?&gt;<br />                                   <br />        &lt;/div&gt;<br />    &lt;/div&gt;<br />  &lt;/div&gt;<br /> &lt;?php endforeach ?&gt;</code></p>
<p>Can I write it somehow to list ONLY the states that actually have a distributor. Please Note: I built this as a list of states that are associated in a list of distributors. Maybe I need to move that get records to the outside of the loop?</p>
<p>Let me know what you think.</p>]]></description>
          <pubDate>Mon, 02 Feb 2015 18:59:08 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235960#post2235960</guid>
        </item>
                <item>
          <title>Text Box Line Items</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235798#post2235798</link>
          <description><![CDATA[<p>I have a text box in a section that is setup for having each line item appear as a span item in the code below</p>
<p><code>&lt;h1 class="short word-rotator-title"&gt;<br /> TEBBEN is a quality manufacturer of &lt;strong class="inverted"&gt;<br /> &lt;span class="word-rotate" data-plugin-options='{"delay": 2000, "animDelay": 300}'&gt;<br /> &lt;span class="word-rotate-items"&gt;<br />  <span style="color:#ff0000;">&lt;span&gt;Quality Farm Equipment&lt;/span&gt;</span><br /><span style="color:#ff0000;">  &lt;span&gt;Industrial Equipment&lt;/span&gt;</span><br /><span style="color:#ff0000;">  &lt;span&gt;Boat Trailers&lt;/span&gt;</span><br /> &lt;/span&gt;<br /> &lt;/span&gt;<br /> &lt;/strong&gt;<br />&lt;/h1&gt;</code></p>

<p><code>&lt;h1 class="short word-rotator-title"&gt;<br /> TEBBEN is a quality manufacturer of &lt;strong class="inverted"&gt;<br /> &lt;span class="word-rotate" data-plugin-options='{"delay": 2000, "animDelay": 300}'&gt;<br /> &lt;span class="word-rotate-items"&gt;<br />   &lt;?php foreach ($homepageRecord as $record): ?&gt;<br />   &lt;span&gt;<span style="color:#ff0000;">&lt;?php echo htmlencode($homepageRecord['rotating_upper_words']) ?&gt;</span>&lt;/span&gt; // This need to be fixed to echo each line item in the text box<br />   &lt;?php endforeach ?&gt;<br /> &lt;/span&gt;<br /> &lt;/span&gt;<br /> &lt;/strong&gt;<br />&lt;/h1&gt;</code></p>
<p>Please advise</p>

<p>Michael</p>]]></description>
          <pubDate>Mon, 19 Jan 2015 23:06:35 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235798#post2235798</guid>
        </item>
                <item>
          <title>Identifier list inside a list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235107#post2235107</link>
          <description><![CDATA[<p>OK maybe I need to call you on this one LOL</p>
<p>Inserted your Show me code:</p>
<p><code>      &lt;?php foreach ($resource_typeRecords as $record): ?&gt;<br />        &lt;div class='col-md-3 service'&gt;<br />          &lt;h3&gt;<br />            &lt;span class='fa fa-&lt;?php echo htmlencode($record['resource_type_icon']) ?&gt;'&gt;&lt;/span&gt;<br />            &lt;?php echo htmlencode($record['title']) ?&gt;<br />          &lt;/h3&gt;<br />          &lt;p class='small'&gt;&lt;?php echo strip_tags($record['content']); ?&gt;&lt;/p&gt;<br />          &lt;?php showme($type); ?&gt;<br />          &lt;a class='btn btn-default btn-md' href="categorytype.php?type=&lt;?php echo $type['num'];?&gt;"&gt;<br />            &lt;span class='fa fa-caret-right'&gt;&lt;/span&gt;<br />             Read more<br />          &lt;/a&gt;<br />        &lt;/div&gt;<br />      &lt;?php endforeach ?&gt;</code></p>
<p>and I get this in the returned source code:</p>
<p>Sorry for the lengthy code here but this is one trip through the above loop.</p>
<p><code>  &lt;div class='col-md-3 service'&gt;    <br />   &lt;h3&gt;<br />            &lt;span class='fa fa-search'&gt;&lt;/span&gt;<br />            Case Study          &lt;/h3&gt;<br />          &lt;p class='small'&gt;Learn first-hand how we help our clients drive important business results.&lt;/p&gt;<br />          &lt;xmp&gt;Array<br />(<br />    [0] =&gt; Array<br />        (<br />            [num] =&gt; 1<br />            [createdDate] =&gt; 2014-09-22 01:12:33<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 70<br />            [title] =&gt; Case Study<br />            [content] =&gt; &lt;p&gt;Learn first-hand how we help our clients drive important business results.&lt;/p&gt;<br />            [resource_type_icon] =&gt; search<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [1] =&gt; Array<br />        (<br />            [num] =&gt; 2<br />            [createdDate] =&gt; 2014-09-22 01:12:59<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:15:00<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 10<br />            [title] =&gt; Sample Product Report<br />            [content] =&gt; &lt;p&gt;The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-text-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [2] =&gt; Array<br />        (<br />            [num] =&gt; 5<br />            [createdDate] =&gt; 2014-09-22 01:15:24<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:13:13<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 40<br />            [title] =&gt; Form<br />            [content] =&gt; &lt;p&gt;A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.&lt;/p&gt;<br />            [resource_type_icon] =&gt; list-ol<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [3] =&gt; Array<br />        (<br />            [num] =&gt; 6<br />            [createdDate] =&gt; 2014-09-22 01:15:58<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:12:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 50<br />            [title] =&gt; Newsletter<br />            [content] =&gt; &lt;p&gt;Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.&lt;/p&gt;<br />            [resource_type_icon] =&gt; newspaper-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [4] =&gt; Array<br />        (<br />            [num] =&gt; 7<br />            [createdDate] =&gt; 2014-09-22 01:16:44<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:56<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 60<br />            [title] =&gt; White Paper<br />            [content] =&gt; &lt;p&gt;See our collected studies of real life stratagies used by our clients and other successful businesses.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />)<br />&lt;/xmp&gt;          &lt;a class='btn btn-default btn-md' href="categorytype.php?type=<br />Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151<br />"&gt;<br />            &lt;span class='fa fa-caret-right'&gt;&lt;/span&gt;<br />             Read more<br />          &lt;/a&gt;<br />        &lt;/div&gt;<br />              &lt;div class='col-md-3 service'&gt;<br />          &lt;h3&gt;<br />            &lt;span class='fa fa-file-o'&gt;&lt;/span&gt;<br />            White Paper          &lt;/h3&gt;<br />          &lt;p class='small'&gt;See our collected studies of real life stratagies used by our clients and other successful businesses.&lt;/p&gt;<br />          &lt;xmp&gt;Array<br />(<br />    [0] =&gt; Array<br />        (<br />            [num] =&gt; 1<br />            [createdDate] =&gt; 2014-09-22 01:12:33<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 70<br />            [title] =&gt; Case Study<br />            [content] =&gt; &lt;p&gt;Learn first-hand how we help our clients drive important business results.&lt;/p&gt;<br />            [resource_type_icon] =&gt; search<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [1] =&gt; Array<br />        (<br />            [num] =&gt; 2<br />            [createdDate] =&gt; 2014-09-22 01:12:59<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:15:00<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 10<br />            [title] =&gt; Sample Product Report<br />            [content] =&gt; &lt;p&gt;The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-text-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [2] =&gt; Array<br />        (<br />            [num] =&gt; 5<br />            [createdDate] =&gt; 2014-09-22 01:15:24<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:13:13<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 40<br />            [title] =&gt; Form<br />            [content] =&gt; &lt;p&gt;A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.&lt;/p&gt;<br />            [resource_type_icon] =&gt; list-ol<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [3] =&gt; Array<br />        (<br />            [num] =&gt; 6<br />            [createdDate] =&gt; 2014-09-22 01:15:58<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:12:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 50<br />            [title] =&gt; Newsletter<br />            [content] =&gt; &lt;p&gt;Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.&lt;/p&gt;<br />            [resource_type_icon] =&gt; newspaper-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [4] =&gt; Array<br />        (<br />            [num] =&gt; 7<br />            [createdDate] =&gt; 2014-09-22 01:16:44<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:56<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 60<br />            [title] =&gt; White Paper<br />            [content] =&gt; &lt;p&gt;See our collected studies of real life stratagies used by our clients and other successful businesses.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />)<br />&lt;/xmp&gt;          &lt;a class='btn btn-default btn-md' href="categorytype.php?type=<br />Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151<br />"&gt;<br />            &lt;span class='fa fa-caret-right'&gt;&lt;/span&gt;<br />             Read more<br />          &lt;/a&gt;<br />        &lt;/div&gt;<br />              &lt;div class='col-md-3 service'&gt;<br />          &lt;h3&gt;<br />            &lt;span class='fa fa-newspaper-o'&gt;&lt;/span&gt;<br />            Newsletter          &lt;/h3&gt;<br />          &lt;p class='small'&gt;Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.&lt;/p&gt;<br />          &lt;xmp&gt;Array<br />(<br />    [0] =&gt; Array<br />        (<br />            [num] =&gt; 1<br />            [createdDate] =&gt; 2014-09-22 01:12:33<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 70<br />            [title] =&gt; Case Study<br />            [content] =&gt; &lt;p&gt;Learn first-hand how we help our clients drive important business results.&lt;/p&gt;<br />            [resource_type_icon] =&gt; search<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [1] =&gt; Array<br />        (<br />            [num] =&gt; 2<br />            [createdDate] =&gt; 2014-09-22 01:12:59<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:15:00<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 10<br />            [title] =&gt; Sample Product Report<br />            [content] =&gt; &lt;p&gt;The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-text-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [2] =&gt; Array<br />        (<br />            [num] =&gt; 5<br />            [createdDate] =&gt; 2014-09-22 01:15:24<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:13:13<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 40<br />            [title] =&gt; Form<br />            [content] =&gt; &lt;p&gt;A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.&lt;/p&gt;<br />            [resource_type_icon] =&gt; list-ol<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [3] =&gt; Array<br />        (<br />            [num] =&gt; 6<br />            [createdDate] =&gt; 2014-09-22 01:15:58<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:12:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 50<br />            [title] =&gt; Newsletter<br />            [content] =&gt; &lt;p&gt;Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.&lt;/p&gt;<br />            [resource_type_icon] =&gt; newspaper-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [4] =&gt; Array<br />        (<br />            [num] =&gt; 7<br />            [createdDate] =&gt; 2014-09-22 01:16:44<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:56<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 60<br />            [title] =&gt; White Paper<br />            [content] =&gt; &lt;p&gt;See our collected studies of real life stratagies used by our clients and other successful businesses.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />)<br />&lt;/xmp&gt;          &lt;a class='btn btn-default btn-md' href="categorytype.php?type=<br />Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151<br />"&gt;<br />            &lt;span class='fa fa-caret-right'&gt;&lt;/span&gt;<br />             Read more<br />          &lt;/a&gt;<br />        &lt;/div&gt;<br />              &lt;div class='col-md-3 service'&gt;<br />          &lt;h3&gt;<br />            &lt;span class='fa fa-list-ol'&gt;&lt;/span&gt;<br />            Form          &lt;/h3&gt;<br />          &lt;p class='small'&gt;A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.&lt;/p&gt;<br />          &lt;xmp&gt;Array<br />(<br />    [0] =&gt; Array<br />        (<br />            [num] =&gt; 1<br />            [createdDate] =&gt; 2014-09-22 01:12:33<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 70<br />            [title] =&gt; Case Study<br />            [content] =&gt; &lt;p&gt;Learn first-hand how we help our clients drive important business results.&lt;/p&gt;<br />            [resource_type_icon] =&gt; search<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [1] =&gt; Array<br />        (<br />            [num] =&gt; 2<br />            [createdDate] =&gt; 2014-09-22 01:12:59<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:15:00<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 10<br />            [title] =&gt; Sample Product Report<br />            [content] =&gt; &lt;p&gt;The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-text-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [2] =&gt; Array<br />        (<br />            [num] =&gt; 5<br />            [createdDate] =&gt; 2014-09-22 01:15:24<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:13:13<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 40<br />            [title] =&gt; Form<br />            [content] =&gt; &lt;p&gt;A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.&lt;/p&gt;<br />            [resource_type_icon] =&gt; list-ol<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [3] =&gt; Array<br />        (<br />            [num] =&gt; 6<br />            [createdDate] =&gt; 2014-09-22 01:15:58<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:12:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 50<br />            [title] =&gt; Newsletter<br />            [content] =&gt; &lt;p&gt;Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.&lt;/p&gt;<br />            [resource_type_icon] =&gt; newspaper-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [4] =&gt; Array<br />        (<br />            [num] =&gt; 7<br />            [createdDate] =&gt; 2014-09-22 01:16:44<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:56<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 60<br />            [title] =&gt; White Paper<br />            [content] =&gt; &lt;p&gt;See our collected studies of real life stratagies used by our clients and other successful businesses.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />)<br />&lt;/xmp&gt;          &lt;a class='btn btn-default btn-md' href="categorytype.php?type=<br />Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151<br />"&gt;<br />            &lt;span class='fa fa-caret-right'&gt;&lt;/span&gt;<br />             Read more<br />          &lt;/a&gt;<br />        &lt;/div&gt;<br />              &lt;div class='col-md-3 service'&gt;<br />          &lt;h3&gt;<br />            &lt;span class='fa fa-file-text-o'&gt;&lt;/span&gt;<br />            Sample Product Report          &lt;/h3&gt;<br />          &lt;p class='small'&gt;The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.&lt;/p&gt;<br />          &lt;xmp&gt;Array<br />(<br />    [0] =&gt; Array<br />        (<br />            [num] =&gt; 1<br />            [createdDate] =&gt; 2014-09-22 01:12:33<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 70<br />            [title] =&gt; Case Study<br />            [content] =&gt; &lt;p&gt;Learn first-hand how we help our clients drive important business results.&lt;/p&gt;<br />            [resource_type_icon] =&gt; search<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [1] =&gt; Array<br />        (<br />            [num] =&gt; 2<br />            [createdDate] =&gt; 2014-09-22 01:12:59<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:15:00<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 10<br />            [title] =&gt; Sample Product Report<br />            [content] =&gt; &lt;p&gt;The essence of relationships, especially High Performance Teams, is communication. It is through communication that people share information, make decisions, solve problems and accomplish their day-to-day jobs.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-text-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [2] =&gt; Array<br />        (<br />            [num] =&gt; 5<br />            [createdDate] =&gt; 2014-09-22 01:15:24<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:13:13<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 40<br />            [title] =&gt; Form<br />            [content] =&gt; &lt;p&gt;A collection of forms to help you analyze and strategize different aspects of your business. Download and use them as they apply to your situation.&lt;/p&gt;<br />            [resource_type_icon] =&gt; list-ol<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [3] =&gt; Array<br />        (<br />            [num] =&gt; 6<br />            [createdDate] =&gt; 2014-09-22 01:15:58<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:12:35<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 50<br />            [title] =&gt; Newsletter<br />            [content] =&gt; &lt;p&gt;Our archive of newsletters with important topics about business practices and articals that make a difference to managers and employees.&lt;/p&gt;<br />            [resource_type_icon] =&gt; newspaper-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />    [4] =&gt; Array<br />        (<br />            [num] =&gt; 7<br />            [createdDate] =&gt; 2014-09-22 01:16:44<br />            [createdByUserNum] =&gt; 1<br />            [updatedDate] =&gt; 2014-09-27 07:11:56<br />            [updatedByUserNum] =&gt; 1<br />            [dragSortOrder] =&gt; 60<br />            [title] =&gt; White Paper<br />            [content] =&gt; &lt;p&gt;See our collected studies of real life stratagies used by our clients and other successful businesses.&lt;/p&gt;<br />            [resource_type_icon] =&gt; file-o<br />            [_tableName] =&gt; resource_type<br />        )<br /><br />)<br />&lt;/xmp&gt;          &lt;a class='btn btn-default btn-md' href="categorytype.php?type=<br />Notice: Undefined index: num in /data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php on line 151<br />"&gt;<br />            &lt;span class='fa fa-caret-right'&gt;&lt;/span&gt;<br />             Read more<br />          &lt;/a&gt;<br />        &lt;/div&gt;<br /></code></p>
<p>It seems to be repeating all the records for each trip through the loop.</p>
<p>I sure hope this gives you an idea on whats going on.</p>]]></description>
          <pubDate>Mon, 29 Sep 2014 23:20:54 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235107#post2235107</guid>
        </item>
                <item>
          <title>Identifier list inside a list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235100#post2235100</link>
          <description><![CDATA[<p>It is coming together but an error has occurred in the link</p>
<p>Header:</p>
<p><code>  list($resources_pageRecords, $resources_pageMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'resources_page',<br />    'where'       =&gt; '', // load first record<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />    'limit'       =&gt; '1',<br />  ));<br />  $resources_pageRecord = @$resources_pageRecords[0]; // get first record<br />  if (!$resources_pageRecord) { dieWith404("Record not found!"); } // show error message if no record found<br />  <br />    list($resource_typeRecords, $resource_typeMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'resource_type',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; false,<br />  ));<br />  $type = mysql_select ('resource_type');<br /></code></p>
<p>In the page I put:</p>
<p><code>&lt;?php foreach ($resource_typeRecords as $record): ?&gt;<br />        &lt;div class='col-md-3 service'&gt;<br />          &lt;h3&gt;<br />            &lt;span class='fa fa-&lt;?php echo htmlencode($record['resource_type_icon']) ?&gt;'&gt;&lt;/span&gt;<br />            &lt;?php echo htmlencode($record['title']) ?&gt;<br />          &lt;/h3&gt;<br />          &lt;p class='small'&gt;&lt;?php echo $record['content']; ?&gt;&lt;/p&gt;<br />          &lt;a class='btn btn-default btn-md' href="categorytype.php?type=&lt;?php echo $type['num'];?&gt;"&gt;<br />            &lt;span class='fa fa-caret-right'&gt;&lt;/span&gt;<br />             Read more<br />          &lt;/a&gt;<br />        &lt;/div&gt;<br />      &lt;?php endforeach ?&gt;</code></p>
<p>On the page when I rollover the link I can see the link itself has an error saying:</p>
<p>categorytype.php?type<strong>=Notice:%20Undefined%20index:%20num%20in%20/data/13/0/142/86/142086/user/143888/htdocs/newsite/pages/resources.php%20on%20line%20109</strong></p>
<p>What could be causing it not to grab the "num"?</p>
<p>Thanks</p>]]></description>
          <pubDate>Sat, 27 Sep 2014 00:34:36 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235100#post2235100</guid>
        </item>
                <item>
          <title>Identifier list inside a list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235083#post2235083</link>
          <description><![CDATA[<p>That is great thanks! Based on what you have shown me I understand a little better.</p>

<p>My next question would be how to come from a category page to a specific type list page</p>
<p>If I make a foreach loop to create a list of documents by types.</p>

<p>So I would start on the category page (lets say "resources.php") with:</p>
<p><code>  list($resource_typeRecords, $resource_typeMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'resource_type',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; false,<br />  ));<br />$type = mysql_select ('resource_type');<br /></code></p>
<p>And then show the categories in columns: </p>
<p><code>  &lt;section class='white trans' id='content'&gt;<br />    &lt;?php foreach ($resource_typeRecords as $record): ?&gt;<br />      &lt;div class='col-md-12 col-md-offset-0'&gt;<br />        &lt;div class='col-md-3 service'&gt;<br />          &lt;h3&gt;<br />            &lt;span class='fa fa-search'&gt;&lt;/span&gt;<br />            &lt;?php echo htmlencode($record['title']) ?&gt;<br />          &lt;/h3&gt;<br />          &lt;p class='small'&gt;&lt;?php echo $record['content']; ?&gt;&lt;/p&gt;<br />          &lt;a class='btn btn-default btn-md'&gt;<br />            &lt;span class='fa fa-caret-right'&gt;&lt;/span&gt;<br />            <strong><span style="color:#ff0000;">&lt;a href="categorytype.php?type=&lt;?php echo $type['title'];?&gt;</span>"&gt;</strong>Read more&lt;/a&gt;<br />          &lt;/a&gt;<br />        &lt;/div&gt;<br />      &lt;/div&gt;<br />   &lt;?php endforeach ?&gt;<br />  &lt;/section&gt;</code></p>
<p>SOOO</p>
<p>If I want the link to be built to go to a single category list page (I suppose I would NOT set that up in the "viewer links tab" ) using the "title" in the link (example categorytype.php?type=)</p>
<p>And then what the code look like on the receiving list page (categorytype.php) to understand that we are looking for a list of resources based on the type in the link</p>
<p>I am only guessing  on this</p>
<p><code>  list($resource_documentsRecords, $resource_documentsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'resource_documents',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; true,<br />  ));</code></p>
<p>I think I am close on some but not everything.</p>
<p>Thanks for your help</p>]]></description>
          <pubDate>Thu, 25 Sep 2014 00:06:09 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235083#post2235083</guid>
        </item>
                <item>
          <title>Identifier list inside a list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235018#post2235018</link>
          <description><![CDATA[<p>I have a list <strong>"resource_documents"</strong> of uploaded documents that I added another list <strong>"resource_type"</strong>  inside it to identify what type of document it is.</p>
<p>I need to make a list of each depending on the type of document it is.</p>
<p>So here is the list of types (lable = title)</p>
<p>Case Study <br />White Paper<br />Newsletter<br />Form<br />Webinar<br />Recorded Webinar<br />Sample Product Report</p>
<p>So if I need a list of documents that are just Case Studies or whatever.... what would that look like?</p>
<p><code>&lt;?php foreach ($resource_documentsRecords as $record): ?&gt;<br /><br />if resource_type:label = Case Study <br /><br />&lt;?php endforeach ?&gt;<br /></code></p>
<p>Im not sure if it needs an if statement or if that can be worked out inside the foreach statement</p>
<p>Thanks in advance</p>
<p>And just an FYI this will lead into a similar followup question.</p>]]></description>
          <pubDate>Sun, 21 Sep 2014 18:51:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235018#post2235018</guid>
        </item>
              </channel>
    </rss>
  