<?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: Retrieve Data</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Retrieve Data</description>
<language>en</language>
<pubDate>Sat, 07 Nov 2026 08:05:38 +0000</pubDate>

<item>
<title>yuniar on "Retrieve Data"</title>
<link>https://www.machform.com/forums/topic/retrieve-data#post-12312</link>
<pubDate>Thu, 14 Jul 2011 18:50:03 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">12312@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;That's odd. Can you send me your PHP file please? I'll check it.&#60;br /&#62;
You can send it via email: customer.service [at] appnitro.com
&#60;/p&#62;</description>
</item>
<item>
<title>brucenow on "Retrieve Data"</title>
<link>https://www.machform.com/forums/topic/retrieve-data#post-12307</link>
<pubDate>Wed, 13 Jul 2011 23:06:19 +0000</pubDate>
<dc:creator>brucenow</dc:creator>
<guid isPermaLink="false">12307@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for your reply. I copied it into a Wordpress page. (I'm using the &#34;exec-php&#34; plugin)  I got this message:&#60;/p&#62;
&#60;p&#62;Parse error: syntax error, unexpected ‘=’ in /home1/neighbr0/public_html/punkobama/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 5&#60;/p&#62;
&#60;p&#62;I tried it with a simple .php page that I uploaded to the site and got the same message:&#60;/p&#62;
&#60;p&#62;Parse error: syntax error, unexpected '=' in /home1/neighbr0/public_html/punkobama/machform-1.php on line 5&#60;/p&#62;
&#60;p&#62;So what's with that?&#60;br /&#62;
I much appreciate any help.&#60;/p&#62;
&#60;p&#62;Bruce
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Retrieve Data"</title>
<link>https://www.machform.com/forums/topic/retrieve-data#post-12302</link>
<pubDate>Wed, 13 Jul 2011 15:34:53 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">12302@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The field names within the table should be something like &#34;element_1&#34; ... &#34;element_2&#34;... etc. You can check into the table directly to see it (you will need to use phpMyAdmin or any other mysql console to see it).&#60;/p&#62;
&#60;p&#62;Also, it seems you are missing some code there.&#60;br /&#62;
It should be something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

mysql_connect(&#38;quot;localhost&#38;quot;, &#38;quot;database_name&#38;quot;, &#38;quot;password&#38;quot;) or die(mysql_error());
mysql_select_db(&#38;quot;test&#38;quot;) or die(mysql_error());

$result = mysql_query(&#38;quot;SELECT * FROM form_1&#38;quot;);
$row    = mysql_fetch_array($result);

echo $row[&#38;#39;element_1&#38;#39;];
echo $row[&#38;#39;element_2&#38;#39;];
echo $row[&#38;#39;element_3&#38;#39;];
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>brucenow on "Retrieve Data"</title>
<link>https://www.machform.com/forums/topic/retrieve-data#post-12300</link>
<pubDate>Wed, 13 Jul 2011 09:50:35 +0000</pubDate>
<dc:creator>brucenow</dc:creator>
<guid isPermaLink="false">12300@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I've created my first form.  Now I want to retrieve data from the database.  I'm guessing the name of the table is form_1, and I have no idea what the field names are.  It wasn't clear to me from the form creation what their name would be.&#60;/p&#62;
&#60;p&#62;But I would like to be able to retrieve specific field values from a record.&#60;/p&#62;
&#60;p&#62;Just to see if I could get anything from the database I tried this code:&#60;br /&#62;
(substituting my database name and user name)&#60;/p&#62;
&#60;p&#62;'&#38;lt;?php&#38;gt;'&#60;br /&#62;
'mysql_connect(&#34;localhost&#34;, &#34;database_name&#34;, &#34;password&#34;) or die(mysql_error());'&#60;br /&#62;
'mysql_select_db(&#34;test&#34;) or die(mysql_error());'&#60;/p&#62;
&#60;p&#62;'$result = mysql_query(&#34;SELECT * FROM form_1&#34;);'&#60;/p&#62;
&#60;p&#62;'echo $result;'&#60;br /&#62;
'?&#38;gt;'&#60;/p&#62;
&#60;p&#62;but got a blank page.&#60;/p&#62;
&#60;p&#62;Bruce
&#60;/p&#62;</description>
</item>

</channel>
</rss>
