<?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 issues in queries</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Display issues in queries</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 03:59:39 +0000</pubDate>

<item>
<title>arturom on "Display issues in queries"</title>
<link>https://www.machform.com/forums/topic/display-issues-in-queries#post-14180</link>
<pubDate>Fri, 30 Mar 2012 04:53:33 +0000</pubDate>
<dc:creator>arturom</dc:creator>
<guid isPermaLink="false">14180@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello Yuniar,&#60;/p&#62;
&#60;p&#62;I'm sorry, but I'm a complete newbie and don't have much experience with these matters.  As far as recreating the download link  I looked into &#34;includes/entry-functions.php&#34; file around line 545-581 like you suggested,  but I don't know what piece of that code to use.  I tried several thing but got error messages.  Like this one: Fatal error:&#60;br /&#62;
 &#60;code&#62;Call to undefined function mf_do_query() in /folder/query.php&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Could you please let me know what code I would need to use in order to create a download link for the query?&#60;/p&#62;
&#60;p&#62;Once again I thank you for your great support!  Kind regards.
&#60;/p&#62;</description>
</item>
<item>
<title>arturom on "Display issues in queries"</title>
<link>https://www.machform.com/forums/topic/display-issues-in-queries#post-14173</link>
<pubDate>Fri, 30 Mar 2012 00:40:28 +0000</pubDate>
<dc:creator>arturom</dc:creator>
<guid isPermaLink="false">14173@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Sorry here's the rest:&#60;/p&#62;
&#60;p&#62; mysql_query(&#34;SET NAMES 'charset=CP1251' &#34;, $conn );&#60;br /&#62;
$query = &#34;SELECT * FROM  &#60;code&#62;ap_form_2&#60;/code&#62; ORDER BY ID DESC LIMIT 1&#34;;&#60;br /&#62;
$result = mysql_query($query, $conn );&#60;/p&#62;
&#60;p&#62;if( $result === FALSE ) {&#60;br /&#62;
  echo '&#38;lt;div class=&#34;ERROR&#34;&#38;gt;'.mysql_error().'&#38;lt;/div&#38;gt;';&#60;br /&#62;
} else {&#60;br /&#62;
while($row = mysql_fetch_array($result))&#60;br /&#62;
{
&#60;/p&#62;</description>
</item>
<item>
<title>arturom on "Display issues in queries"</title>
<link>https://www.machform.com/forums/topic/display-issues-in-queries#post-14172</link>
<pubDate>Thu, 29 Mar 2012 23:55:10 +0000</pubDate>
<dc:creator>arturom</dc:creator>
<guid isPermaLink="false">14172@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you very  much Yuniar,&#60;/p&#62;
&#60;p&#62;1) This is the line that displays the date:  &#38;lt;div id=\&#34;fecha\&#34;&#38;gt;&#34; . utf8_encode($row[&#34;element_9&#34;]). &#34;&#38;lt;/div&#38;gt;&#60;/p&#62;
&#60;p&#62;Also, thank you for your comments on the other two issues. I'll look into that!&#60;/p&#62;
&#60;p&#62;Kind regards.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Display issues in queries"</title>
<link>https://www.machform.com/forums/topic/display-issues-in-queries#post-14166</link>
<pubDate>Thu, 29 Mar 2012 21:22:22 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">14166@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;1) You can use the date_format() function on your query. Can you let me know your query?&#60;/p&#62;
&#60;p&#62;2) Those are the index of the dropdown. To get the actual values, you will need to do a lookup into &#34;ap_element_options&#34; table. You can do a JOIN query for this. You might want to check this post below for some sample:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/drop-downs-and-mysql?replies=11&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/drop-downs-and-mysql?replies=11&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;3) You will need to construct the download link again, using the same method as MachForm does. You can look into &#34;includes/entry-functions.php&#34; file around line 545-581. You'll find the code there.
&#60;/p&#62;</description>
</item>
<item>
<title>arturom on "Display issues in queries"</title>
<link>https://www.machform.com/forums/topic/display-issues-in-queries#post-14147</link>
<pubDate>Wed, 28 Mar 2012 23:08:20 +0000</pubDate>
<dc:creator>arturom</dc:creator>
<guid isPermaLink="false">14147@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello, &#60;/p&#62;
&#60;p&#62;Awesome software!!&#60;/p&#62;
&#60;p&#62;I have a couple of questions concerning queries I'm running from MachForm.&#60;/p&#62;
&#60;p&#62;I'm doing this simple query:&#60;/p&#62;
&#60;p&#62;echo &#34;&#38;lt;div id=\&#34;Actirightcolumn\&#34;&#38;gt;&#60;br /&#62;
&#38;lt;div id=\&#34;fecha\&#34;&#38;gt;&#34; . utf8_encode($row[&#34;element_9&#34;]). &#34;&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;div id=\&#34;actititle\&#34;&#38;gt;&#34; . utf8_encode($row[&#34;element_1&#34;]). &#34;&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;div id=\&#34;actititle\&#34;&#38;gt;&#34; . utf8_encode($row[&#34;element_2&#34;]). &#34;&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;div id=\&#34;actititle\&#34;&#38;gt;&#34; . utf8_encode($row[&#34;element_3&#34;]). &#34;(Tipo de archivo)&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;div id=\&#34;actititle\&#34;&#38;gt;&#34; . utf8_encode($row[&#34;element_4&#34;]). &#34;&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;div id=\&#34;actides\&#34;&#38;gt;&#34; . utf8_encode($row[&#34;element_5&#34;]). &#34; &#38;lt;span id=\&#34;moreinfo\&#34;&#38;gt;&#60;a title='Ver más' href='&#34;.utf8_encode($row[&#34;element_8&#34;]).&#34;'&#62;VER MÁS&#60;/a&#62;&#38;lt;/span&#38;gt; &#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;/div&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;1.  &#34;element_9&#34; is the date.  But it's showing up like: 2012-03-28 instead of 28-03-2012 (DD-MM-YYYY) which is the date format I selected on the backend for this field. How can I have it show up in this format (DD-MM-YYYY)?&#60;/p&#62;
&#60;p&#62;2.  &#34;element_3&#34; is a drop-down where user selects the type of file being uploaded (PDF, DOC, JPG, etc). This particular query shows a number,&#60;br /&#62;
like: 1, 2, 3 rather than the name of the type of file indicated in the form.  So, how can I get it to display: PDF, DOC, JPG, etc. instead of: 1, 2, 3, etc.?&#60;/p&#62;
&#60;p&#62;3. I'm having users upload files using the forms and it's working great. On the display  (query) page I need to add an option to allow users to &#34;download&#34; files.  What would you recommend I do for that?&#60;/p&#62;
&#60;p&#62;Thank you very much for your excellent support!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
