<?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: Getting values from the database</title>
		<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database</link>
		<description>Gravity Support Forums Topic: Getting values from the database</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 00:59:02 +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/getting-values-from-the-database" rel="self" type="application/rss+xml" />

		<item>
			<title>drosales on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-74030</link>
			<pubDate>Wed, 05 Sep 2012 14:28:12 +0000</pubDate>
			<dc:creator>drosales</dc:creator>
			<guid isPermaLink="false">74030@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would love to see what your insight is... Are you on Skype? drosales43 is my Skype handle
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vixvii on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-74027</link>
			<pubDate>Wed, 05 Sep 2012 14:08:28 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">74027@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David - sorry I only saw your comment now and I know it is most probably WAY too late. But just an update. Reporting wasn't &#34;resolved&#34; but once you know how the data is stored it isn't too difficult to write your own reporting. I am a php &#34;hacker&#34; and I have no real clue what I am doing, but I got pretty far in terms of reporting and putting Gravity Forms to good use.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>drosales on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-42362</link>
			<pubDate>Mon, 28 Nov 2011 19:14:17 +0000</pubDate>
			<dc:creator>drosales</dc:creator>
			<guid isPermaLink="false">42362@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;was this ever resolved? I am also in need of having a reporting program... I have a membership site where people log in referrals, they need to be able to check the following in some form of a data string:&#60;/p&#62;
&#60;p&#62;Each referral forms has 4 spots we want pulled back into a report on a user basis... &#60;/p&#62;
&#60;p&#62;the person given the referral and giver of the referral, name of referral, date, dollar amount&#60;/p&#62;
&#60;p&#62;that is it! &#60;/p&#62;
&#60;p&#62;I really could use this resolved this week! &#60;/p&#62;
&#60;p&#62;David
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vixvii on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-27589</link>
			<pubDate>Sat, 11 Jun 2011 05:02:41 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">27589@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl, thanks for the reply - just to clarify, the students won't be registered as wordpress users. I just need to capture all their details and this should be linked to the Team Leader (Actual Wordpress user)&#60;/p&#62;
&#60;p&#62;Reading some of the other posts on the forum I think you did suggest to someone that you are hoping to implement &#34;sub-forms&#34; in version 1.5.3? But in the mean time creating a field for every entry and using conditional logic is the way to go. This isn't a problem - I just want to do the right thing ;-)&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-27530</link>
			<pubDate>Fri, 10 Jun 2011 10:21:55 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">27530@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@vixvii This isn't a feature of the User Registration Add-On. The User Registration Add-On only registers/creates one user at a time. If you wanted to do this, you'd have to write your own customization to handle the user registration of the additional students.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vixvii on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-27502</link>
			<pubDate>Fri, 10 Jun 2011 03:52:18 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">27502@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Dimitri thanks for this and I will definately have a look, for now I first need to capture the data to display :-)&#60;/p&#62;
&#60;p&#62;Please let me know if I need to create a new topic for this, but it is still part of my overall problem. I created the user registration form and it works great, but I need to register up to 11 students too. Is it possible to have a form within a form? I need to register the students the same time I do the user registration for the multisite.&#60;/p&#62;
&#60;p&#62; I want to have a dropdown to select the nr of students to register and it must bring up the student registration form X nr of times. My only other option (what I can see) is to have 11 student registration fields for name, age etc. And display the fields with a conditional argument...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dmitriy.son@inthefirm.com on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-27493</link>
			<pubDate>Fri, 10 Jun 2011 00:15:14 +0000</pubDate>
			<dc:creator>dmitriy.son@inthefirm.com</dc:creator>
			<guid isPermaLink="false">27493@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;vixvii, i quess it could be useful &#60;a href=&#34;http://www.geertdedeckere.be/shop/graphup&#34; rel=&#34;nofollow&#34;&#62;http://www.geertdedeckere.be/shop/graphup&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-27173</link>
			<pubDate>Tue, 07 Jun 2011 08:05:13 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">27173@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am glad i was able to help.&#60;br /&#62;
Good luck!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vixvii on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-27156</link>
			<pubDate>Tue, 07 Jun 2011 00:24:56 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">27156@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks again Alex! This is definitely helping and putting me on the right track. I think I have combined several problems in one and that is why it is so &#34;fuzzy&#34; - but your answer is definitely spot on to my main problem. Basically...&#60;/p&#62;
&#60;p&#62;1) I have a multisite set up where teams can register&#60;br /&#62;
2) The Team Leader is the Wordpress User, so he will register&#60;br /&#62;
3) Upon registration he must also fill in his team members' details&#60;br /&#62;
4) The Team Leader must be able to edit his team members' details&#60;br /&#62;
5) As &#34;Superadmin&#34; I need to be able to draw a list of all the teams, pull reports on demographics etc.&#60;/p&#62;
&#60;p&#62;By being able to access data straight in the database, I can write my own functions to pull the required data for the reports. Your answer on the database says to me it is not as complicated as some of the other posts made it out to be, and using hooks I can even do a lot of the calculations as soon as a form is submitted.&#60;/p&#62;
&#60;p&#62;I will start my journey and take it one small step at a time :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Getting values from the database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-values-from-the-database#post-27147</link>
			<pubDate>Mon, 06 Jun 2011 18:22:27 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">27147@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am still a little bit fuzzy on exactly what you need as far as getting the data, but here is some info on how the data is stored. There is a main entry table (wp_rg_lead). Every entry created by Gravity Forms will create a record in the wp_rg_lead table. This table, doesn't however keep the actual field values. Those are stored in the wp_rg_lead_detail table. This table has a lead_id column which is a foreign key to the wp_rg_lead table and also a field_number column that maps to the ID of the field.&#60;br /&#62;
So, if you have a form with the fields (age, race and sex), and assuming the field Ids are age=1, race=2 and sex=3, the data related to a submission of that form would look like the following:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;wp_rg_lead
id    date_created    .....other columns
1     6/5/2011

wp_rg_lead_detail
id    lead_id   field_number       value
1     1            1                20
2     1            2              white
3     1            3              hispanic&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So, to read all values for the age field, you would query the wp_rg_lead_detail table WHERE field_number = 1&#60;/p&#62;
&#60;p&#62;As far as hooks that you will need to use to pull off your custom functionality, it looks like a good one to start looking is the gform_post_submission hook (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_submission)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_post_submission)&#60;/a&#62;. It allows you to do any processing needed after a form is successfully submitted.&#60;/p&#62;
&#60;p&#62;Good Luck!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
