<?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%3Apetrogus</link>
        <description></description>
        <pubDate>Fri, 10 Apr 2026 10:16:39 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?rss=1&amp;k=user%3Apetrogus" rel="self" type="application/rss+xml" />

                <item>
          <title> &apos;colValue&apos; can&apos;t have a default value</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246131#post2246131</link>
          <description><![CDATA[<p>Hello All !</p>
<p>I am trying to transfer some websites from on server to other</p>
<p>I am using cpanel <span class="page-title">Backup Wizard or manual transfer but both of them I have the same error </span></p>
<p><span class="page-title"><span> <strong class="alert-title">Error:</strong> <span class="alert-body"><span>The system failed to execute the database script with the following errors: ERROR 1101 (42000) at line 125: BLOB, TEXT, GEOMETRY or JSON column 'colValue' can't have a default value </span></span> </span></span></p>
<p>I have notice that the older host account work with </p>
<p>Database Server MariaDB Server v5.5.5-10.3.36-MariaDB (Max Connections: 151)</p>
<p>and the new one </p>
<p>MySQL Community Server - GPL v8.0.30 (Max Connections: 151)</p>

<p>I can't sold the problem, could you suggest any solution </p>
<p>Thank you in advance</p>
<p>Petrogus</p>]]></description>
          <pubDate>Tue, 06 Sep 2022 14:30:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246131#post2246131</guid>
        </item>
                <item>
          <title>Re: Form Generator Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246009#post2246009</link>
          <description><![CDATA[<p>Thank you Dave</p>
<p>what a great update !!!</p>
]]></description>
          <pubDate>Wed, 15 Jun 2022 15:58:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246009#post2246009</guid>
        </item>
                <item>
          <title>Re: Form Generator Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246006#post2246006</link>
          <description><![CDATA[<p>Thank you Daniel for your reply </p>
<p>I have download the latest form generator 1.01 but I can't see this option at the code generator<br /><br /><br /></p>]]></description>
          <pubDate>Wed, 15 Jun 2022 00:47:25 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246006#post2246006</guid>
        </item>
                <item>
          <title>Re: Form Generator Question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245996#post2245996</link>
          <description><![CDATA[<p>In response to: <a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2242321#post2242321" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2242321#post2242321</a></p>
<p>Hello could you please add a small example of how can we embed Google recaptcha in the form generator <br /><br /></p>]]></description>
          <pubDate>Tue, 14 Jun 2022 03:53:47 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245996#post2245996</guid>
        </item>
                <item>
          <title>Form Generator </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245656#post2245656</link>
          <description><![CDATA[<p>Hi interactive tools.  Do you have any news ?!!</p>]]></description>
          <pubDate>Tue, 28 Sep 2021 09:41:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245656#post2245656</guid>
        </item>
                <item>
          <title>Form Generator </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245655#post2245655</link>
          <description><![CDATA[<p>I am also interesting about this feature. <br />As forms start to be more and more important for communication between website and visitor <br />I looking forward for an update particularity in Upload Fields. </p>



]]></description>
          <pubDate>Wed, 22 Sep 2021 06:42:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245655#post2245655</guid>
        </item>
                <item>
          <title>Illegal string offset</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245436#post2245436</link>
          <description><![CDATA[<p>Hi to everyone</p>
<p>I would like to ask your help. I am not sure how it start but realize that I have the following error <span>. ( this maybe start after update or php version change)<br /><br /><strong>Warning: Illegal string offset 'image' in /home/xxxx/public_html/products.php on line 154 </strong></span><strong>&lt;<span class="start-tag">img</span> <span class="attribute-name">src</span>="Warning: Illegal string offset 'image' in /home/xxxx/public_html/products.php on line 155</strong></p>
<p><span>I have copy the specific code line. </span><span>Have anyone idea why this happen</span></p>
<p><span>thank you in advance</span></p>
<pre class="language-php"><code>											&lt;ul class="slides"&gt;
											&lt;?php if($catLink == 0) { ?&gt;
												&lt;li&gt;
													&lt;a href="products.php?category=&lt;?php echo htmlencode($rootCat['name_'.$_SESSION['language']]); ?&gt;&amp;cat=&lt;?php echo $rootCat['num']; ?&gt;"&gt;
														&lt;?php if(!$rootCat['image']) { ?&gt;&lt;img src="images/nocat.jpg" alt="&lt;?php echo htmlencode($rootCat['name_'.$_SESSION['language']]); ?&gt;" /&gt;
														&lt;?php } else { ?&gt;&lt;img src="inc/timthumb.php?src=&lt;?php echo $rootCat['image'][0]['thumbUrlPath']; ?&gt;&amp;amp;w=215" alt="&lt;?php echo htmlencode($rootCat['name_'.$_SESSION['language']]); ?&gt;" /&gt;&lt;?php } ?&gt;
													&lt;/a&gt;
												&lt;/li&gt;
											&lt;?php } elseif($catLink == 1) { ?&gt;
												&lt;li&gt;
													&lt;a href="products.php?category=&lt;?php echo htmlencode($parentCat['name_'.$_SESSION['language']]); ?&gt;&amp;cat=&lt;?php echo $parentCat['num']; ?&gt;&amp;type=&lt;?php echo htmlencode($rootCat['name_'.$_SESSION['language']]); ?&gt;&amp;id=&lt;?php echo $rootCat['num']; ?&gt;"&gt;
														&lt;?php if(!$rootCat['image']) { ?&gt;&lt;img src="images/nocat.jpg" alt="&lt;?php echo htmlencode($rootCat['name_'.$_SESSION['language']]); ?&gt;" /&gt;
														&lt;?php } else { ?&gt;&lt;img src="inc/timthumb.php?src=&lt;?php echo $rootCat['image'][0]['thumbUrlPath']; ?&gt;&amp;amp;w=215" alt="&lt;?php echo htmlencode($rootCat['name_'.$_SESSION['language']]); ?&gt;" /&gt;&lt;?php } ?&gt;
													&lt;/a&gt;
												&lt;/li&gt;
											&lt;?php } ?&gt;
											&lt;/ul&gt;</code></pre>]]></description>
          <pubDate>Wed, 03 Mar 2021 15:17:47 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245436#post2245436</guid>
        </item>
                <item>
          <title>placeholder in an article</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245149#post2245149</link>
          <description><![CDATA[<p>Hello to all,</p>
<p>I am looking for solution about a placeholder in an article. I would like to insert dynamic a names or address in a GDPR agreement.<br />Have anyone idea how can do it. For example see below.</p>
<p><span>Textfield</span> : <span><strong>#placeholder-name<br /></strong></span><span>Textbox</span> : <span><strong>#placeholder-address</strong></span> <br />Field box : <span><strong>#placeholder-phonenumber <br /></strong></span></p>
<p><span>"Lorem ipsum dolor sit amet, <strong>#placeholder-name</strong> consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation. Duis aute irure dolor in <strong>#placeholder-address </strong>reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. </span></p>
<p><span>Excepteur sint occaecat cupidatat non proident, <strong>#placeholder-phonenumber</strong> sunt in culpa qui officia deserunt mollit anim id est laborum."</span></p>
<p><span>thank you in advance !</span></p>]]></description>
          <pubDate>Fri, 06 Nov 2020 05:52:02 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245149#post2245149</guid>
        </item>
                <item>
          <title>Blank Page after save</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244723#post2244723</link>
          <description><![CDATA[<p>Thanks Greg,</p>
<p>Now all work perfect as always!</p>]]></description>
          <pubDate>Sun, 17 May 2020 10:33:59 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244723#post2244723</guid>
        </item>
                <item>
          <title>Blank Page after save</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244721#post2244721</link>
          <description><![CDATA[<p>Dear Greg ,</p>
<p>I just send to you all information, you want</p>
<p>I looking forward to hear your opinion</p>]]></description>
          <pubDate>Thu, 14 May 2020 14:52:33 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244721#post2244721</guid>
        </item>
                <item>
          <title>Blank Page after save</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244718#post2244718</link>
          <description><![CDATA[<p>Hello to anyone</p>
<p>I face a very strange issue with CMS Builder. When I edit an article and click save appear the following message </p>
<p><em>"This page is asking you to confirm that you want to leave - data you have entered may not be saved"</em></p>
<p>with two option "Leave or Stay" . In case click to leave all data saved correct but this redirect to white page, where at the top left appear the record num of article</p>
<p>For example I am editing page like /admin.php?menu=about after editing redirect to /admin.php?</p>
<p>I tried to deactivate all plugins I am using but nothing change.</p>
<p>Of course I need to go back and forward to finish my work. Have anyone idea why this happens? Thank you in advance</p>

<p>Operating System Linux 3.10.0-1062.18.1.el7.x86_64 (release) <br />Web Server <span>Apache</span><br />PHP Version PHP v7.3.17 (phpinfo)</p>]]></description>
          <pubDate>Thu, 14 May 2020 02:32:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244718#post2244718</guid>
        </item>
                <item>
          <title>Contact Form - SendMessage</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244717#post2244717</link>
          <description><![CDATA[<p>Great !! Many Thanks <span>Greg</span></p>]]></description>
          <pubDate>Tue, 12 May 2020 12:39:45 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244717#post2244717</guid>
        </item>
                <item>
          <title>Contact Form - SendMessage</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244713#post2244713</link>
          <description><![CDATA[<p>Thank you Greg for your response,</p>
<p>I wasn't clear enough with my previews post. At the first time script send mails in the way that email template was structured <br />but the placeholders was empty. Finally we find the correct sequence to work.</p>
<p>I copy the way it work to me below (partial copy)</p>
<pre class="language-markup"><code>.
.
.
.

    ### INSERT NEW RECORD
    if (!$errorsAndAlerts) {
      $colsToValues = array(
        'createdDate='     =&gt; "NOW()",
        'createdByUserNum' =&gt; (int) @$CURRENT_USER['num'],
        'updatedDate='     =&gt; "NOW()",
        'updatedByUserNum' =&gt; (int) @$CURRENT_USER['num'],
        'dragSortOrder'    =&gt; time(),
        'name'             =&gt; @$_REQUEST['name'],
        'surname'          =&gt; @$_REQUEST['surname'],
        'phone'            =&gt; @$_REQUEST['phone'],
        'email'            =&gt; @$_REQUEST['email'],
        'message'          =&gt; @$_REQUEST['message'],
        'agree'            =&gt; @$_REQUEST['agree'],
      );

      // insert or update record (and adopt uploads [for future use])
      $recordNum = fg_util_insertOrUpdateRecord($FORM_TABLE, $FORM_RECORD_NUM, $colsToValues);
      adoptUploads($FORM_TABLE, $FORM_PRESAVETEMPID, $recordNum);
      removeExpiredUploads(); // erase old expired uploads
	  
		$email    = isset( $_REQUEST['email'] ) ? $_REQUEST['email'] : '';
		$fullname = isset( $_REQUEST['name'] ) ? $_REQUEST['name']." ".$_REQUEST['surname'] : '';
		$phone    = isset( $_REQUEST['phone'] ) ? $_REQUEST['phone'] : '';
		$message  = isset( $_REQUEST['message'] ) ? $_REQUEST['message'] : '';
		if(@$_POST['agree'] == "1") { $agree = "Yes!"; } else { $agree = "No?"; }


	  $emailHeaders = emailTemplate_loadFromDB(array(
		'template_id'        =&gt; 'TEST-MAIL-ME',
		'addHeaderAndFooter' =&gt; false,
		'placeholders'       =&gt; array(
		  'visitor.name'      =&gt; $fullname,
		  'visitor.email'     =&gt; $email,
		  'visitor.phone'     =&gt; $phone,
		  'visitor.message'   =&gt; $message,
		  'visitor.agree'     =&gt; $agree,
		),
	  ));

    //Get the subject to use in the title tag.
    $htmlTitle  = htmlencode($emailHeaders['subject']);
    //Custom Header
    $header = &lt;&lt;&lt;__HTML__
&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;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;$htmlTitle&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;style type="text/css"&gt;p { margin-bottom: 1em; color:#000; }&lt;/style&gt;

__HTML__;
// ***NOTE*** style tag is for Yahoo Mail which otherwise drops paragraph spacing - <a href="http://www.email-standards.org/blog/entry/yahoo-drops-paragraph-spacing/" rel="nofollow">http://www.email-standards.org/blog/entry/yahoo-drops-paragraph-spacing/</a>
// ... having a defined &lt;title&gt;&lt;/title&gt; helps get by spam filters

  //Generate the footer
  $footer = &lt;&lt;&lt;__HTML__
&lt;/body&gt;
&lt;/html&gt;
__HTML__;
  
  //Add teh footer and header to the email headers.
  $emailHeaders['html'] = $header . $emailHeaders['html'] . $footer;

  //Send the email
  $mailErrors = sendMessage($emailHeaders);
  if ($mailErrors) { die("Mail Error: $mailErrors"); }

      // on success
      $_REQUEST        = []; // clear form fields
      $errorsAndAlerts = "Thank you! The form has been submitted successfully.&lt;br /&gt;\n";
      $success         = true;		  
    }
  }
 

.
.
.
.</code></pre>
<p>Thank you for your support !!!</p>
<p>Could you help me in case I would like to send email with values from checkboxes (multi value)</p>]]></description>
          <pubDate>Tue, 12 May 2020 07:21:45 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244713#post2244713</guid>
        </item>
                <item>
          <title>Contact Form - SendMessage</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244695#post2244695</link>
          <description><![CDATA[<p>Hi CMS Builder</p>
<p>I have created a form with Form Generator with the following fields, which work perfect (all Records are stored to CMS Builder)<br />'name', 'surname', 'phone', 'email', 'message' and 'agree' (checkbox)</p>
<p>but I want to send these information to administrator with email as well.</p>
<p>While I search to forum I understand that I need to use email template with custom placeholder (as look bellow)</p>
<p>Visitor Name : <strong>#visitor.name#</strong><br />Visitor Email: <strong>#visitor.email#</strong><br />Visitor Phone : <strong>#visitor.phone#<br /></strong>Visitor Message : <strong>#visitor.message#</strong><br />Visitor Accept Terms :<strong> #visitor.agree#</strong></p>
<p>From Email Templates, I tried to send these data using "Export Templates as PHP or SendMessage() PHP with no luck.</p>
<p>Below I have attach the code which I am using. Could you help me ?</p>
<p>All relevant Code is under</p>
<p>/********** Send Message **********/</p>
<pre class="language-php"><code>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;
&lt;?php
  // load viewer library
  $libraryPath = 'xxxxxx/lib/viewer_functions.php';
  $dirsToCheck = ['','../','../../','../../../','../../../../']; 
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
  
  // FORM SETTINGS
  $FORM_TABLE          = "contact_form";
  $FORM_ALLOW_ADD      = true;  // allow creating new records
  $FORM_ALLOW_EDIT     = false; // allow editing existing records,  link to page with ?num=123 to specify record num
  $FORM_REQUIRE_LOGIN  = false; // require users to be logged in to use form
  $FORM_RECORD_NUM     = intval(@$_REQUEST['num']);   // specify record number to edit in url like this: ?num=123
  $FORM_UPLOAD_FIELDS  = []; 
  $FORM_PRESAVETEMPID  = @$_REQUEST['preSaveTempId'] ? $_REQUEST['preSaveTempId'] : uniqid('x'); // for future use - uploads
  $_IS_ADD_FORM        = !$FORM_RECORD_NUM;
  $_IS_EDIT_FORM       = $FORM_RECORD_NUM;

  // ERROR/SECURITY CHECK
  $formRecord     = $FORM_RECORD_NUM ? mysql_get($FORM_TABLE, $FORM_RECORD_NUM) : [];
  $userOwnsRecord = @$formRecord['createdByUserNum'] &amp;&amp; $formRecord['createdByUserNum'] == @$CURRENT_USER['num'];
  if      (!function_exists('fg_util_isPluginEnabled')) { die("You must activate the Form Generator plugin before you can access this page."); }
  else if ($FORM_REQUIRE_LOGIN &amp;&amp; !@$CURRENT_USER)      { die("You must login to use this form!"); }
  else if ($_IS_ADD_FORM &amp;&amp; !$FORM_ALLOW_ADD)           { die("Add record - access not permitted!"); }
  else if ($_IS_EDIT_FORM) {
    if      (!$FORM_ALLOW_EDIT)                         { die("Modify record - access not permitted!"); }  
    else if (!$formRecord)                              { die("Modify record - record doesn't exist!"); }  
    else if ($FORM_REQUIRE_LOGIN &amp;&amp; !$userOwnsRecord)   { die("Modify record - you can only edit records you've created!"); }
  }
  
  // PROCESS FORM - Update this PHP code block if you need to change the error checking or error/alert messages
  $errorsAndAlerts = '';
  if (@$_REQUEST['_save']) {

    ### CREATE DATE-FIELDS
    
    
    ### ERROR CHECKING
    list($table, $num) = [$FORM_TABLE, $FORM_RECORD_NUM]; // assign shorter convenience variables
    if (@$_REQUEST['name'] == '')   { $errorsAndAlerts .= "'Name' is required.&lt;br /&gt;\n"; }
    if (@$_REQUEST['email'] == '')  { $errorsAndAlerts .= "'email' is required.&lt;br /&gt;\n"; }
    if (!@$_REQUEST['agree'])     { $errorsAndAlerts .= "'Agree' is required.&lt;br /&gt;\n"; } // uncomment to make checkbox required


    ### INSERT NEW RECORD
    if (!$errorsAndAlerts) {
      $colsToValues = array(
        'createdDate='     =&gt; "NOW()",
        'createdByUserNum' =&gt; (int) @$CURRENT_USER['num'],
        'updatedDate='     =&gt; "NOW()",
        'updatedByUserNum' =&gt; (int) @$CURRENT_USER['num'],
        'dragSortOrder'    =&gt; time(),
        'name'             =&gt; @$_REQUEST['name'],
        'surname'          =&gt; @$_REQUEST['surname'],
        'phone'            =&gt; @$_REQUEST['phone'],
        'email'            =&gt; @$_REQUEST['email'],
        'message'          =&gt; @$_REQUEST['message'],
        'agree'            =&gt; @$_REQUEST['agree'],
      );

      // insert or update record (and adopt uploads [for future use])
      $recordNum = fg_util_insertOrUpdateRecord($FORM_TABLE, $FORM_RECORD_NUM, $colsToValues);
      adoptUploads($FORM_TABLE, $FORM_PRESAVETEMPID, $recordNum);
      removeExpiredUploads(); // erase old expired uploads


      // on success
      $_REQUEST        = []; // clear form fields
      $errorsAndAlerts = "Thank you! The form has been submitted successfully.&lt;br /&gt;\n";
      $success         = true;		  
    }
  }
  
 
  // Load Record (for edit forms)
  if ($_IS_EDIT_FORM) {
    $FORM_RECORD = mysql_get($FORM_TABLE, (int) $FORM_RECORD_NUM);
    $_REQUEST     = fg_util_prePopulateRequest($FORM_RECORD);
  }

  // set page title
  $formTitle = "Contact Form";
	
  if ($FORM_ALLOW_ADD &amp;&amp; $FORM_ALLOW_EDIT) { // if form supports add and edit, show which action is taking place
    if ($_IS_ADD_FORM)   { $formTitle .= " - Add record"; } 
    if ($_IS_EDIT_FORM)  { $formTitle .= " - Modify record"; } 
  }


/********** Send Message **********/

	$email    = isset( $_REQUEST['email'] ) ? $_REQUEST['email'] : '';
	$fullname = isset( $_REQUEST['name'] ) ? $_REQUEST['name']." ".$_REQUEST['surname'] : '';
	$phone    = isset( $_REQUEST['phone'] ) ? $_REQUEST['phone'] : '';
	$message  = isset( $_REQUEST['message'] ) ? $_REQUEST['message'] : '';
	if(@$_POST['agree'] == "1") { $agree = "Yes!"; } else { $agree = "No?"; }
	
	

if (!$errorsAndAlerts) {
  $emailHeaders = emailTemplate_loadFromDB(array(
    'template_id'        =&gt; 'TEST-MAIL-ME',
    'addHeaderAndFooter' =&gt; false,
    'placeholders'       =&gt; array(
      'visitor.name'      =&gt; $fullname,
      'visitor.email'     =&gt; $email,
      'visitor.phone'     =&gt; $phone,
      'visitor.message'   =&gt; $message,
      'visitor.agree'     =&gt; $agree,
    ),
  ));

    //Get the subject to use in the title tag.
    $htmlTitle  = htmlencode($emailHeaders['subject']);
    //Custom Header
    $header = &lt;&lt;&lt;__HTML__
&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;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;$htmlTitle&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

__HTML__;

  //Generate the footer
  $footer = &lt;&lt;&lt;__HTML__
&lt;/body&gt;
&lt;/html&gt;
__HTML__;
  
  //Add teh footer and header to the email headers.
  $emailHeaders['html'] = $header . $emailHeaders['html'] . $footer;

  //Send the email
  $mailErrors = sendMessage($emailHeaders);
  if ($mailErrors) { die("Mail Error: $mailErrors"); }
 
  }
  /******** End of Sent Message *******/
  
?&gt; 
</code></pre>]]></description>
          <pubDate>Sun, 10 May 2020 08:04:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244695#post2244695</guid>
        </item>
                <item>
          <title>filtering record by type</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242672#post2242672</link>
          <description><![CDATA[<p>Hi Everyone,</p>
<p>I would to filter 'myrecords' base on articleTypesRecords between tabs. I have two types of records and i want to filter at each tab - type.</p>
<p>At the moment 'myrecords' load at both tabs, could you help me please ?!</p>
<pre class="language-markup"><code>&lt;?php
  list($articleRecords, $articleMetaData) = getRecords(array( 'tableName'   =&gt; 'myrecords',  
  'loadUploads' =&gt; true, 'allowSearch' =&gt; false, ));  
  
  list($articleTypesRecords, $articleTypesMetaData) = getRecords(array( 'tableName'   =&gt; 'rec_type', 'loadUploads' =&gt; true, 'allowSearch' =&gt; false, ));  

?&gt;

&lt;div class="tabs"&gt;
	&lt;?php foreach($articleTypesRecords as $articleType) { ?&gt;
        &lt;div class="tab-item &lt;?php if ($articleType['num'] == 1) { echo "tab-active"; } ?&gt;"&gt;
          	&lt;a class="tab-label &lt;?php if ($articleType['num'] == 1) { echo "active-btn"; } ?&gt;" data-url="&lt;?php echo $articleType['num']; ?&gt;"&gt;&lt;?php echo htmlencode($articleType['title_'.$_SESSION['lang']]); ?&gt;&lt;/a&gt;
			&lt;div class="tab-content"&gt;
				&lt;?php foreach($articleRecords as $articleItem) { $articleType = mysql_select("rec_type", "num = '".$articleItem['rec_type']."'"); $articleType = @$articleType[0]; ?&gt;
				&lt;article&gt;
					&lt;h3&gt;&lt;a href="sample.php"&gt;&lt;?php echo $articleItem['title']; ?&gt;&lt;/a&gt;&lt;/h3&gt;
					&lt;a href="blog.php&amp;article=&lt;?php echo $articleItem['num']; ?&gt;"&gt;Read more&lt;/a&gt;  
				&lt;/article&gt;
				&lt;?php } ?&gt;
			&lt;/div&gt;  
		&lt;/div&gt;
	&lt;?php } ?&gt;	
&lt;/div&gt;</code></pre>
]]></description>
          <pubDate>Mon, 19 Nov 2018 12:07:01 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242672#post2242672</guid>
        </item>
                <item>
          <title>mysql_count</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242276#post2242276</link>
          <description><![CDATA[<p>thank you Leo , it works great </p>]]></description>
          <pubDate>Thu, 05 Jul 2018 11:00:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242276#post2242276</guid>
        </item>
                <item>
          <title>mysql_count</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242274#post2242274</link>
          <description><![CDATA[<p>Hi everyone,<br /><br />I would like to use the mysql_count in order to appear different section depend of the number of the records per type,<br />I have created table named "products" and i use list "type" in order to filtering them.<br />if the sum of the records which filtered by type is 1 or more than 1.</p>
<p>i use this one <br />&lt;?php $modelCount = mysql_count('products', 'type'); ?&gt;<br /> &lt;?php if ($modelCount == 1) { ?&gt;<br />  section A<br />&lt;?php } elseif($modelCount &gt; 1) { ?&gt;<br /> section B<br />&lt;?php } ?&gt;<br /><br />example<br />model AA have type A --&gt; view in section 1<br />and <br />model B and type B<br />model 2B and type B  --&gt; View in section 2<br /><br />Could you help me please !<br />petrogus</p>]]></description>
          <pubDate>Thu, 05 Jul 2018 03:04:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242274#post2242274</guid>
        </item>
                <item>
          <title>searchRows &amp; _link</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241074#post2241074</link>
          <description><![CDATA[<p>Hi David,</p>
<p>it works but the problem is that I have different results on search page.</p>
<p>For example &lt;?php echo $record['_link'] ?&gt; show me links like products.php?7 or news.php?2 or article.php?4</p>
<p>I need to create links like products.php?article=7 or news.php?article=2 or article.php?article=4. <br />Different php page for each results.</p>

<p>thank you for your help</p>]]></description>
          <pubDate>Sun, 27 Aug 2017 07:29:51 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241074#post2241074</guid>
        </item>
                <item>
          <title>searchRows &amp; _link</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241054#post2241054</link>
          <description><![CDATA[<p>Hi All,</p>
<p>I create a search page with the results, </p>
<p><code>                  &lt;?php foreach ($searchRows as $record): ?&gt;<br />                      &lt;a href="&lt;?php echo $record['_link'] ?&gt;"&gt;&lt;strong&gt;&lt;?php echo $record['_title'] ?&gt;&lt;/strong&gt;&lt;/a&gt;&lt;br/&gt;<br />                      &lt;?php if ($record['_summary']): ?&gt;<br />                        &lt;?php echo $record['_summary'] ?&gt;&lt;br/&gt;<br />                       &lt;?php else: ?&gt;<br />                         No description available for page.&lt;br/&gt;<br />                       &lt;?php endif ?&gt;<br />                      &lt;a href="&lt;?php echo $record['_link'] ?&gt;" style="color: #999;" &gt;&lt;?php echo $record['_link'] ?&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;<br />                   &lt;?php endforeach ?&gt;</code></p>
<p>and the link of the results look like as /news.php?6</p>
<p>but I would like to appear as /news.php?article=6</p>
<p>Could you help ! thank you in advance</p>
<p>P.</p>

]]></description>
          <pubDate>Sun, 13 Aug 2017 15:33:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241054#post2241054</guid>
        </item>
                <item>
          <title>appear div on maxCols</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239274#post2239274</link>
          <description><![CDATA[<p>Thank Damon !!!</p>
<p>it works fine thank you for your help </p>
]]></description>
          <pubDate>Sun, 31 Jul 2016 13:33:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239274#post2239274</guid>
        </item>
                <item>
          <title>appear div on maxCols</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238978#post2238978</link>
          <description><![CDATA[<p>Hi I would like to ask your help on this question,<br /> how can appear a div on start and at the end every 4 records</p>
<p>for example I have this code</p>
<p>&lt;?php $maxCols = 4; $columnCount = 0; ?&gt; <br />&lt;?php if (($columnCount % $maxCols) == 0) { echo "&lt;div class=".chr(34)."row".chr(34)."&gt;";}?&gt;<br />&lt;?php foreach ($productsRecords as $record): ?&gt;</p>
<p>&lt;div class="col-md-3 &gt;<br />.....<br />&lt;/div&gt;</p>
<p>&lt;?php endforeach ?&gt;<br /> &lt;?php if (($columnCount % $maxCols) == 0) { echo "&lt;/div&gt;";}?&gt;</p>
<p>and I would like to appear on page the following</p>
<p>&lt;div class="row"&gt;<br /><span>&lt;div class="col-md-3 &gt;</span><span>.....</span><span>&lt;/div&gt;<br /><span>&lt;div class="col-md-3 &gt;</span><span>.....</span><span>&lt;/div&gt;</span><br /><span>&lt;div class="col-md-3 &gt;</span><span>.....</span><span>&lt;/div&gt;</span><br /><span>&lt;div class="col-md-3 &gt;</span><span>.....</span><span>&lt;/div&gt;<br /></span></span><span>&lt;/div&gt;</span></p>
<p><span><span>&lt;div class="row"&gt;</span><br /><span>&lt;div class="col-md-3 &gt;</span><span>.....</span><span>&lt;/div&gt;<br />&lt;div class="col-md-3 &gt;.....&lt;/div&gt;<br />&lt;div class="col-md-3 &gt;.....&lt;/div&gt;<br />&lt;div class="col-md-3 &gt;.....&lt;/div&gt;<br /></span><span>&lt;/div&gt;</span></span></p>
<p><span><span>Thank you in advance</span></span></p>]]></description>
          <pubDate>Fri, 27 May 2016 17:01:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238978#post2238978</guid>
        </item>
                <item>
          <title>createPDF page breaks</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236596#post2236596</link>
          <description><![CDATA[<p>Hi,</p>
<p>I'm trying to print a long table (2 or more pages long, landscape) to PDF but i cannot create page break in my document.<br /><br />I tried my table to print in grid as well (i'm working with bootstrap 3). I have header and footer for every page as well.</p>
<p>My script for output until now:</p>
<p><code>  $GLOBALS['CREATEPDF_CUSTOM_SWITCHES'] = '--page-size A4 --encoding UTF-8 --orientation landscape --margin-top 0 --margin-bottom 25 --margin-right 0 --margin-left 0 --header-html printthis-header.html --footer-html printthis-footer.html';<br />  createPDF_fromOutput('inline', 'example.pdf');</code></p>
<p>Have you any sample code to create automatic page breaks?<br />I'm using the add-on version 1.04.<br />Please advise,<br />Kostas</p>]]></description>
          <pubDate>Wed, 22 Apr 2015 03:20:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236596#post2236596</guid>
        </item>
                <item>
          <title>autoBackup</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236246#post2236246</link>
          <description><![CDATA[<p>Hi Dave,</p>
<p>I start a research about the backup to external server with no luck until, now.</p>
<p>I there any live solution i can embed?</p>
<p>Keeping backup files on the same server is not the best solution and send over email everyday for over 30 client is lot of work with archiving afterwards.</p>
<p>How and where can i mount an externmal drive in the autoBackup.php like:</p>
<p><code>sshfs user@remotesystem:/remote/dir /some/local/dir</code></p>
<p>Regarded to the post Future CMSB Requirements: PHP v5.4 and MySQL v5.5 (<a href="http://www.interactivetools.com/forum/forum-posts.php?Future-CMSB-Requirements-PHP-v5.4-and-MySQL-v5.5-79943" rel="nofollow">http://www.interactivetools.com/forum/forum-posts.php?Future-CMSB-Requirements-PHP-v5.4-and-MySQL-v5.5-79943</a>)<br />Is this for the next big update (maybe version 3) of the cmsb or even for the next immediate releases as well?</p>
<p>Please advise,<br />Kostas</p>]]></description>
          <pubDate>Tue, 10 Mar 2015 01:40:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236246#post2236246</guid>
        </item>
                <item>
          <title>autoBackup</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236222#post2236222</link>
          <description><![CDATA[<p>Hi Dave,</p>
<p>Thank you for the update!</p>
<p>Kostas</p>]]></description>
          <pubDate>Sat, 07 Mar 2015 00:00:24 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236222#post2236222</guid>
        </item>
                <item>
          <title>autoBackup</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2236179#post2236179</link>
          <description><![CDATA[<p>Hi,</p>
<p>Related to the post:</p>
<p><a href="http://www.interactivetools.com/forum/forum-posts.php?postNum=2233052#post2233052" rel="nofollow">http://www.interactivetools.com/forum/forum-posts.php?postNum=2233052#post2233052</a></p>
<p>is there any news on new version of the autoBackup add-on?</p>
<p>I search for solution to create backup to an external server, (ip/folder).</p>
<p>Thank you,<br />Kostas</p>]]></description>
          <pubDate>Tue, 03 Mar 2015 14:20:49 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2236179#post2236179</guid>
        </item>
              </channel>
    </rss>
  