<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Can&#039;t access Gravity Forms table?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table</link>
		<description>Gravity Support Forums Topic: Can&#039;t access Gravity Forms table?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:03:53 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/cant-access-gravity-forms-table" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Can&#039;t access Gravity Forms table?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table#post-36132</link>
			<pubDate>Sat, 24 Sep 2011 13:17:55 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">36132@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great.  Glad that worked out for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ThomasUmstattd on "Can&#039;t access Gravity Forms table?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table#post-35965</link>
			<pubDate>Thu, 22 Sep 2011 13:01:36 +0000</pubDate>
			<dc:creator>ThomasUmstattd</dc:creator>
			<guid isPermaLink="false">35965@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Wow! That worked. Fabulous!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can&#039;t access Gravity Forms table?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table#post-35931</link>
			<pubDate>Wed, 21 Sep 2011 21:56:31 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">35931@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try this as line 4 of your code (the line after global $wpdb;)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
    $wpdb-&#38;gt;rg_lead_detail = $wpdb-&#38;gt;prefix . &#38;#39;rg_lead_detail&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The query works fine for the posts table since that is defined as part of the wpdb object already.  I think you have to define rg_lead_detail yourself.  &#60;/p&#62;
&#60;p&#62;It worked for me.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ThomasUmstattd on "Can&#039;t access Gravity Forms table?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table#post-35925</link>
			<pubDate>Wed, 21 Sep 2011 20:18:42 +0000</pubDate>
			<dc:creator>ThomasUmstattd</dc:creator>
			<guid isPermaLink="false">35925@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh, and I dumped $mylink using var_dump($mylink); and it returned &#34;NULL&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ThomasUmstattd on "Can&#039;t access Gravity Forms table?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table#post-35924</link>
			<pubDate>Wed, 21 Sep 2011 20:17:13 +0000</pubDate>
			<dc:creator>ThomasUmstattd</dc:creator>
			<guid isPermaLink="false">35924@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Btw, I had the &#60;a href=&#34;http://wordpress.org/extend/plugins/gravity-forms-addons/&#34; rel=&#34;nofollow&#34;&#62;Gravity Forms Directory &#38;amp; Addons&#60;/a&#62; plugin activated. I thought that perhaps it was conflicting so I deactivated it but it hasn't made a difference.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ThomasUmstattd on "Can&#039;t access Gravity Forms table?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table#post-35923</link>
			<pubDate>Wed, 21 Sep 2011 20:11:47 +0000</pubDate>
			<dc:creator>ThomasUmstattd</dc:creator>
			<guid isPermaLink="false">35923@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yeah, it's just an everyday template file for a regular old page. If I use the virtually identical code below that queries a WordPress default table it works.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
    function show_signers() {
        global $wpdb;
        $mylink = $wpdb-&#38;gt;get_row(&#38;quot;SELECT * FROM $wpdb-&#38;gt;posts WHERE ID = 116&#38;quot;);
		echo &#38;quot;The Title is: &#38;quot; . $mylink-&#38;gt;post_title;
    }
    show_signers();

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any thoughts? Do you have any examples of code that work for you?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Can&#039;t access Gravity Forms table?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table#post-35921</link>
			<pubDate>Wed, 21 Sep 2011 19:48:04 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">35921@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you dump the array $mylink, what's in it?&#60;/p&#62;
&#60;p&#62;Where does this code live?  Is it in a template file?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ThomasUmstattd on "Can&#039;t access Gravity Forms table?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/cant-access-gravity-forms-table#post-35920</link>
			<pubDate>Wed, 21 Sep 2011 19:45:58 +0000</pubDate>
			<dc:creator>ThomasUmstattd</dc:creator>
			<guid isPermaLink="false">35920@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi guys,&#60;/p&#62;
&#60;p&#62;I've been working on this for the past 4 hours and I'm ready to pull my hair out. ;)&#60;/p&#62;
&#60;p&#62;All I'm trying to do is display some of the values in the Gravity Forms custom table. But no matter what parameters I adjust, I can't get it to show anything. At the same time, I can pull and display data from the WordPress default tables with a problem (e.g. wp_users, wp_links, wp_comments, etc.)&#60;/p&#62;
&#60;p&#62;Below is the code I'm fighting with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
	function show_signers() {
		global $wpdb;
		$mylink = $wpdb-&#38;gt;get_row(&#38;quot;SELECT * FROM $wpdb-&#38;gt;rg_lead_detail WHERE id = 117&#38;quot;);
		echo &#38;quot;The ID is: &#38;quot; . $mylink-&#38;gt;form_id;
	}
	show_signers();
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But all that shows up are the words &#34;The ID is: &#34;. I've verified that values &#38;lt;b&#38;gt;do&#38;lt;/b&#38;gt; exist in the Gravity Forms table that I'm trying to access.&#60;/p&#62;
&#60;p&#62;So... what am I doing wrong?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
