<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Display problem in queries</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Display problem in queries</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 03:52:45 +0000</pubDate>

<item>
<title>arturom on "Display problem in queries"</title>
<link>https://www.machform.com/forums/topic/display-problem-in-queries#post-14972</link>
<pubDate>Wed, 06 Jun 2012 04:13:12 +0000</pubDate>
<dc:creator>arturom</dc:creator>
<guid isPermaLink="false">14972@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I never received a reply for this, but thankfully it's solved now.  Regards.
&#60;/p&#62;</description>
</item>
<item>
<title>arturom on "Display problem in queries"</title>
<link>https://www.machform.com/forums/topic/display-problem-in-queries#post-14928</link>
<pubDate>Wed, 30 May 2012 08:05:06 +0000</pubDate>
<dc:creator>arturom</dc:creator>
<guid isPermaLink="false">14928@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I love your software! But I'm having problems concerning queries I'm running from MachForm.&#60;/p&#62;
&#60;p&#62;I'm running this query which can be viewed on this link: &#60;a href=&#34;http://70.87.90.196/~visionmu/Oficina_Costa_Rica.php.&#34; rel=&#34;nofollow&#34;&#62;http://70.87.90.196/~visionmu/Oficina_Costa_Rica.php.&#60;/a&#62;  Here's the query:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
	   mysql_query(&#38;quot;SET NAMES &#38;#39;charset=CP1251&#38;#39; &#38;quot;, $conn );
$query = &#38;quot;SELECT * FROM &#38;lt;code&#38;gt;ap_form_1&#38;lt;/code&#38;gt; INNER JOIN &#38;lt;code&#38;gt;ap_element_options&#38;lt;/code&#38;gt;  ORDER BY ID DESC LIMIT 5&#38;quot;;
$result = mysql_query($query, $conn );	   

	    if( $result === FALSE ) {
  echo &#38;#39;&#38;lt;div class=&#38;quot;ERROR&#38;quot;&#38;gt;&#38;#39;.mysql_error().&#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;
} else {
while($row = mysql_fetch_array($result))
{

echo &#38;quot;&#38;lt;div id=\&#38;quot;bloque\&#38;quot;&#38;gt;
&#38;lt;div id=\&#38;quot;fecha\&#38;quot;&#38;gt;&#38;quot; . utf8_encode($row[&#38;quot;element_1&#38;quot;]). &#38;quot;&#38;lt;/div&#38;gt;
&#38;lt;div id=\&#38;quot;actititle\&#38;quot;&#38;gt;&#38;quot; . utf8_encode($row[&#38;quot;element_3&#38;quot;]). &#38;quot;&#38;lt;/div&#38;gt;
&#38;lt;div id=\&#38;quot;actititle\&#38;quot;&#38;gt;&#38;quot; . utf8_encode($row[&#38;quot;element_5&#38;quot;]). &#38;quot;&#38;lt;/div&#38;gt;
&#38;lt;div id=\&#38;quot;actititle\&#38;quot;&#38;gt;&#38;quot; . utf8_encode($row[&#38;quot;option&#38;quot;]). &#38;quot;(Tipo de archivo)&#38;lt;/div&#38;gt;
&#38;lt;div id=\&#38;quot;actititle\&#38;quot;&#38;gt;&#38;quot; . utf8_encode($row[&#38;quot;element_6&#38;quot;]). &#38;quot;&#38;lt;/div&#38;gt;
&#38;quot;;

}
}

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;1. &#34;option&#34; is intended to display the type of file as entered in the form. (PDF, DOC, JPG, etc). For some reason on the query page, each query displays each of the file types and not the one that corresponds.  I mean, instead of showing each query's actual file type it seems to randomly select a file type.  &#60;/p&#62;
&#60;p&#62;2. For some reason, instead of displaying the last five records (as it should), the query is displaying the same record five times. I don't know why!&#60;/p&#62;
&#60;p&#62;Thank you very much for your excellent support!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
