<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Is it possible to create 2 columns filed?</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Is-it-possible-to-create-2-columns-filed-78415</link>
        <description></description>
        <pubDate>Sat, 14 Mar 2026 06:13:33 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Is-it-possible-to-create-2-columns-filed-78415" rel="self" type="application/rss+xml" />

                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229176#post2229176</link>
          <description><![CDATA[<p>Hi Gerg</p>

<p>Wonderful! It works now!</p>

<p>Great &amp; thanks!</p>

<p>Jac</p>]]></description>
          <pubDate>Wed, 23 Jan 2013 22:49:45 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229176#post2229176</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229151#post2229151</link>
          <description><![CDATA[<p>Hi Jac,</p>
<p>I think the problem is with your mysql_get function on line 41:</p>
<p>$yearData = mysql_get('monthly_revenue', null, "monthly_revenue = '$year'");</p>
<p>The third variable for a mysql_get function is a where statement that you want to use to refine your results. In this case you want it to filter on the year field, so the function should look like this:</p>
<p>$yearData = mysql_get('monthly_revenue', null, "year = '$year'");</p>
<p>Thanks!</p>
<p>Greg</p>]]></description>
          <pubDate>Mon, 21 Jan 2013 10:13:07 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229151#post2229151</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229145#post2229145</link>
          <description><![CDATA[<p>Hi Gerg</p>
<p>I try to fix the code for my page.  got error.</p>
<blockquote>
<p>MySQL Error: Unknown column 'monthly_revenue' in 'where clause' (at old_alias_functions.php line 18 in function mysql_get_query)</p>
</blockquote>

<p>The attachment is the file.</p>
<p>Can you help??</p>

<p><span>Thanks in advance for your help!</span></p>
<p><span>Jac</span></p>]]></description>
          <pubDate>Sun, 20 Jan 2013 08:36:18 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229145#post2229145</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229143#post2229143</link>
          <description><![CDATA[<p>Hi Jac,</p>
<p>You need to change the names of the sections in the mql functions to match the names of your sections:</p>

<p>//Set the year data to nothing<br />$yearData = "";</p>
<p>//This array will contain all of the years used.<br />$yearList = array();</p>
<p>//This will get all the entries from the year table<br />$years = mysql_select('<span style="color:#ff0000;">year</span>');</p>
<p><br />//loop through the year table entries<br />foreach($years as $year){<br />//If the year isn't stored in the year list, add it!<br />if(!in_array($year['year'], $yearList)){<br />$yearList[] = $year['year'];<br />}<br />}</p>
<p>if(@$_REQUEST['getYear']){<br />//Validate the year post data<br />$year = intval($_REQUEST['year']);<br />//Get the record for this year.<br />$yearData = mysql_get('<span style="color:#ff0000;">year</span>', null, "<span style="color:#ff0000;">year</span> = '$year'");<br />}</p>
<p>?&gt;</p>
<p>&lt;form method="post" action="scratch.php"&gt;<br />&lt;input type="hidden" name="getYear" value="go" /&gt;<br />&lt;!-- year drop down. --&gt;<br />&lt;select name="year" &gt;<br />&lt;!-- loop through the year entries --&gt;<br />&lt;?php foreach($yearList as $yearEntry): ?&gt;<br />&lt;option value="&lt;?php echo $yearEntry; ?&gt;" &gt;&lt;?php echo $yearEntry; ?&gt;&lt;/option&gt;<br />&lt;?php endforeach; ?&gt;<br />&lt;/select&gt;<br />&lt;input type="submit" name="send" value="Go!" /&gt;<br />&lt;/form&gt;</p>
<p>&lt;!-- If the year data is returned, display it below --&gt;<br />&lt;?php if($yearData): ?&gt;<br />&lt;div id="yearBox"&gt;<br />&lt;!-- you will need to change the the variables to match the field names you have used --&gt;<br />&lt;span class="title"&gt;January&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">start_jan</span>']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">finish_jan</span>']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />&lt;span class="title"&gt;Febuary&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">start_feb</span>']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">finish_feb</span>']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />&lt;span class="title"&gt;March&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">start_march</span>']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">finish_march</span>']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />&lt;span class="title"&gt;April&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['start_apr']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">finish_apr</span>']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />&lt;span class="title"&gt;May&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">start_may</span>']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['<span style="color:#ff0000;">finish_may</span>']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />&lt;/div&gt;<br />&lt;?php endif; ?&gt;</p>

<p>I've highlighted items you will need to change in red above. </p>]]></description>
          <pubDate>Fri, 18 Jan 2013 12:07:50 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229143#post2229143</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229142#post2229142</link>
          <description><![CDATA[<p>Hi Gerg </p>
<p>Got the error:</p>
<p><span>MySQL Error: Table 'quanmax_cmsAdmin.cms_year' doesn't exist (at old_alias_functions.php line 142 in function mysql_select_query)</span></p>
<p><span>The Table 'quanmax_cmsAdmin.cms_year' doesn't exist.</span></p>
<p><span><span>Any ideas?</span></span></p>
<p><span><span>Many thanks for you help!</span></span></p>
<p><span>Jac</span></p>]]></description>
          <pubDate>Fri, 18 Jan 2013 10:58:41 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229142#post2229142</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229140#post2229140</link>
          <description><![CDATA[<p>Hi Jac,</p>
<p>So you want to get the items in the year drop down dynamically from the section? I would do something like this:</p>

<p>//Set the year data to nothing<br />$yearData = "";</p>
<p>//This array will contain all of the years used.<br />$yearList = array();</p>
<p>//This will get all the entries from the year table<br />$years = mysql_select('year');</p>
<p><br />//loop through the year table entries<br />foreach($years as $year){<br /> //If the year isn't stored in the year list, add it!<br /> if(!in_array($year['year'], $yearList)){<br /> $yearList[] = $year['year'];<br /> }<br />}</p>
<p>if(@$_REQUEST['getYear']){<br /> //Validate the year post data<br /> $year = intval($_REQUEST['year']);<br /> //Get the record for this year.<br /> $yearData = mysql_get('year', null, "year = '$year'");<br />}</p>
<p>?&gt;</p>
<p>&lt;form method="post" action="scratch.php"&gt;<br />&lt;input type="hidden" name="getYear" value="go" /&gt;<br />&lt;!-- year drop down. --&gt;<br /> &lt;select name="year" &gt;<br /> &lt;!-- loop through the year entries --&gt;<br /> &lt;?php foreach($yearList as $yearEntry): ?&gt;<br /> &lt;option value="&lt;?php echo $yearEntry; ?&gt;" &gt;&lt;?php echo $yearEntry; ?&gt;&lt;/option&gt;<br /> &lt;?php endforeach; ?&gt;<br /> &lt;/select&gt;<br /> &lt;input type="submit" name="send" value="Go!" /&gt;<br />&lt;/form&gt;</p>
<p>&lt;!-- If the year data is returned, display it below --&gt;<br />&lt;?php if($yearData): ?&gt;<br />&lt;div id="yearBox"&gt;<br />&lt;!-- you will need to change the the variables to match the field names you have used --&gt;<br /> &lt;span class="title"&gt;January&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['start_jan']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_jan']; ?&gt;&lt;/span&gt;&lt;br&gt;<br /> &lt;span class="title"&gt;Febuary&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['start_feb']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_feb']; ?&gt;&lt;/span&gt;&lt;br&gt;<br /> &lt;span class="title"&gt;March&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['start_march']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_march']; ?&gt;&lt;/span&gt;&lt;br&gt;<br /> &lt;span class="title"&gt;April&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['start_apr']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_apr']; ?&gt;&lt;/span&gt;&lt;br&gt;<br /> &lt;span class="title"&gt;May&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['start_may']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_may']; ?&gt;&lt;/span&gt;&lt;br&gt;<br /> &lt;/div&gt;<br />&lt;?php endif; ?&gt;</p>
<p>This is just an example, so you'll need to change some of the variables to match one's you have used.</p>
<p>Thanks!</p>
<p>Greg</p>
]]></description>
          <pubDate>Fri, 18 Jan 2013 09:57:41 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229140#post2229140</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229139#post2229139</link>
          <description><![CDATA[<p>Hi Gerg here</p>
<p>I would ike to create a dropdown feature ( tag) for the year field.</p>
<p>When choose the year. It can display the year record (12month).</p>
<p>How can I use tag to get record?</p>
<blockquote>
<p>&lt;?php foreach ($monthly_revenueRecords as $record): ?&gt;<br /> Record Number: &lt;?php echo htmlencode($record['num']) ?&gt;&lt;br/&gt;<br /><br /> Year (value): <br /> &lt;select size="1" id="select" name="select"&gt;<br /> &lt;option&gt;&lt;?php echo $record['year'] ?&gt;&lt;/option&gt;<br /> &lt;/select&gt;<br /><br /> Parent: &lt;?php echo htmlencode($record['parent_jan']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_jan']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_feb']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_feb']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_march']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_march']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_apr']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_apr']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_may']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_may']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_jun']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_jun']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_jul']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_jul']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_aug']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_aug']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_sep']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_sep']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_oct']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_oct']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_nov']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_nov']) ?&gt;&lt;br/&gt;<br /> Parent: &lt;?php echo htmlencode($record['parent_dec']) ?&gt;&lt;br/&gt;<br /> Consolidated: &lt;?php echo htmlencode($record['consolidated_dec']) ?&gt;&lt;br/&gt;<br /> _link : &lt;a href="&lt;?php echo $record['_link'] ?&gt;"&gt;&lt;?php echo $record['_link'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /> &lt;hr/&gt;<br /> &lt;?php endforeach ?&gt;</p>
<p>&lt;?php if (!$monthly_revenueRecords): ?&gt;<br /> No records were found!&lt;br/&gt;&lt;br/&gt;<br /> &lt;?php endif ?&gt;</p>
<p><br /><br /></p>
</blockquote>
<p>Thanks!</p>
<p>Jac</p>]]></description>
          <pubDate>Fri, 18 Jan 2013 07:39:11 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229139#post2229139</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229106#post2229106</link>
          <description><![CDATA[<p>Hi Jac,</p>
<p>I'm not entirely sure how you have your section set up. But if the year is a unique field then you could do something like this:</p>
<p>//Set the year data to nothing<br />$yearData = "";</p>
<p>if(@$_REQUEST['getYear']){<br />  //Validate the year post data<br />  $year = intval($_REQUEST['year']);<br />  //Get the record for this year.<br />  $yearData = mysql_get('year', null, "year = '$year'");<br /> }</p>
<p>?&gt;</p>
<p>&lt;form method="post" action="scratch.php"&gt;<br /> &lt;input type="hidden" name="getYear" value="go" /&gt;<br /> &lt;!-- year drop down. --&gt;<br />  &lt;select name="year" &gt;<br />   &lt;option&gt;2001&lt;/option&gt;<br />    &lt;option&gt;2002&lt;/option&gt;<br />    &lt;option&gt;2003&lt;/option&gt;<br />    &lt;option&gt;2004&lt;/option&gt;<br />    &lt;option&gt;2005&lt;/option&gt;<br />  &lt;/select&gt;<br />  &lt;input type="submit" name="send" value="Go!" /&gt;<br />&lt;/form&gt;</p>
<p>&lt;!-- If the year data is returned, display it below --&gt;<br />&lt;?php if($yearData): ?&gt;<br /> &lt;div id="yearBox"&gt;<br /> &lt;!-- you will need to change the the variables to match the field names you have used --&gt;<br />  &lt;span class="title"&gt;January&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['start_jan']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_jan']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />    &lt;span class="title"&gt;Febuary&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['start_feb']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_feb']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />    &lt;span class="title"&gt;March&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['start_march']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_march']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />    &lt;span class="title"&gt;April&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['start_apr']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_apr']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />    &lt;span class="title"&gt;May&lt;/span&gt; &lt;span&gt;&lt;?php echo $yearData['start_may']; ?&gt;&lt;/span&gt;&lt;span&gt;&lt;?php echo $yearData['finish_may']; ?&gt;&lt;/span&gt;&lt;br&gt;<br />  &lt;/div&gt;<br />&lt;?php endif; ?&gt;</p>
<p>The version above is based on the test year section I created for your previous question. You will probably need to change the names of the fields and sections so that they match the names you have used. </p>
<p>Let me know if you have any questions.</p>
<p>Thanks!</p>
<p>Greg</p>]]></description>
          <pubDate>Tue, 15 Jan 2013 16:05:24 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229106#post2229106</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229104#post2229104</link>
          <description><![CDATA[<p>Hi Gerg</p>
<p>It nice to hear from you.</p>
<p>Do you have 2) solution?</p>
<p><span>I would like to display the full 12 month information when choose a year.</span></p>
<p>I just use dropdown menu for the year.</p>
<p>How to get the record...</p>

<p>Thank you again.</p>
<p>Jac</p>]]></description>
          <pubDate>Tue, 15 Jan 2013 09:59:47 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229104#post2229104</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229103#post2229103</link>
          <description><![CDATA[<p>Hi Jac,</p>
<p>I just to confirm what you're after; so each record can have multiple years of data. For example, one record might have data for 2012, 2011, 2010, etc, and not just for one year? </p>
<p>Currently CMS Builder doesn't support having two fields side by side. You would have to have to a have them in a row. I've attached a screenshot of a layout you could try. </p>
<p>Thanks</p>
<p>Greg</p>]]></description>
          <pubDate>Tue, 15 Jan 2013 09:49:25 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229103#post2229103</guid>
        </item>
                <item>
          <title>Is it possible to create 2 columns filed?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229100#post2229100</link>
          <description><![CDATA[<p>Hi guys,</p>

<p>There are years and monthly fields on the section.</p>
<p>Each month have 2 fields information.</p>
<p>1) Is it possible to build a section like this? (please see the attachment image)</p>
<p>2) In my front page. How can I display the full month information when choose a year?</p>
<p>It look like</p>
<p>When I choose year.</p>
<p>The page will display all 12 monthes information.<br />Each month have 2 field information.</p>
<p>I use mutli-section to biuld the pages. It seems not fit the need.</p>

<p>Jac</p>]]></description>
          <pubDate>Tue, 15 Jan 2013 09:24:27 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229100#post2229100</guid>
        </item>
              </channel>
    </rss>
  