<?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: Join Tables Question</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Join Tables Question</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:07:40 +0000</pubDate>

<item>
<title>yuniar on "Join Tables Question"</title>
<link>https://www.machform.com/forums/topic/join-tables-question#post-7525</link>
<pubDate>Thu, 01 Oct 2009 12:46:50 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">7525@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I think you forgot to close the double quote for your query, it should be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$query = &#38;quot;SELECT id, date_created
FROM ap_form_1, ap_element_options
WHERE ap_form_1.id = ap_element_options.form_id
ORDER BY date_created DESC&#38;quot;;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>rscott7706 on "Join Tables Question"</title>
<link>https://www.machform.com/forums/topic/join-tables-question#post-7509</link>
<pubDate>Thu, 01 Oct 2009 01:15:10 +0000</pubDate>
<dc:creator>rscott7706</dc:creator>
<guid isPermaLink="false">7509@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;For some reason, the following query works fine (QUERY 1), but the one further down (QUERY 2) that attempts to join tables does not.&#60;/p&#62;
&#60;p&#62;I know questions here should be about Machform, but it would solve a lot of problems for me if I can get the &#34;join tables&#34; concept down pat.&#60;/p&#62;
&#60;p&#62;I left out username and password from code.&#60;/p&#62;
&#60;p&#62;Here is a link to the one that works:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://communityrecoveryteam.org/volunteer%20form/apForm1_List.php&#34; rel=&#34;nofollow&#34;&#62;https://communityrecoveryteam.org/volunteer%20form/apForm1_List.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;QUERY 1&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
echo &#34;&#38;lt;font face=\&#34;verdana\&#34;&#38;gt;&#34;;&#60;br /&#62;
     echo &#34;&#60;br /&#62;&#34;;&#60;br /&#62;
$db = mysql_connect(&#34;localhost&#34;, &#34;&#34;, &#34;&#34;);&#60;br /&#62;
mysql_select_db(&#34;crtsdorg_userforms&#34;);&#60;/p&#62;
&#60;p&#62;$query = &#34;SELECT * FROM ap_form_1 ORDER BY id desc&#34;;&#60;/p&#62;
&#60;p&#62;$result = mysql_query($query) or die(mysql_error());&#60;br /&#62;
echo &#34;&#38;lt;font face=\&#34;arial\&#34;&#38;gt;&#34;;&#60;br /&#62;
while($row = mysql_fetch_array($result)){&#60;br /&#62;
    echo &#34;&#60;br /&#62;ID:  &#34;;&#60;br /&#62;
    echo $row['id'];&#60;br /&#62;
    echo &#34;&#38;nbsp;&#38;nbsp;Date Volunteered:  &#34;;&#60;br /&#62;
    echo $row['date_created'];&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;QUERY 2&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
echo &#34;&#38;lt;font face=\&#34;verdana\&#34;&#38;gt;&#34;;&#60;br /&#62;
     echo &#34;&#60;br /&#62;&#34;;&#60;br /&#62;
$db = mysql_connect(&#34;localhost&#34;, &#34;&#34;, &#34;&#34;);&#60;br /&#62;
mysql_select_db(&#34;crtsdorg_userforms&#34;);&#60;/p&#62;
&#60;p&#62;$query = &#34;SELECT id, date_created&#60;br /&#62;
FROM ap_form_1, ap_element_options&#60;br /&#62;
WHERE ap_form_1.id = ap_element_options.form_id&#60;br /&#62;
ORDER BY date_created DESC;&#60;/p&#62;
&#60;p&#62;$result = mysql_query($query) or die(mysql_error());&#60;br /&#62;
echo &#34;&#38;lt;font face=\&#34;arial\&#34;&#38;gt;&#34;;&#60;br /&#62;
while($row = mysql_fetch_array($result)){&#60;br /&#62;
    echo &#34;&#60;br /&#62;ID:  &#34;;&#60;br /&#62;
    echo $row['id'];&#60;br /&#62;
    echo &#34;&#38;nbsp;&#38;nbsp;Date Volunteered:  &#34;;&#60;br /&#62;
    echo $row['date_created'];&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;Here is the error:&#60;br /&#62;
Parse error: syntax error, unexpected T_STRING in /home6/crtsdorg/public_html/volunteer form/apForm1_List2.php on line 13
&#60;/p&#62;</description>
</item>

</channel>
</rss>
