<?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 Tag: MySQL - Recent Topics</title>
		<link>https://legacy.forums.gravityhelp.com/tags/mysql</link>
		<description>Gravity Support Forums Tag: MySQL - Recent Topics</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:21:23 +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/tags/mysql/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>rysen2888 on "Gravity forms on install - Wordpress database error: mysql has gone away"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gravity-forms-on-install-wordpress-database-error-mysql-has-gone-away#post-362146</link>
			<pubDate>Thu, 04 Jul 2013 21:10:11 +0000</pubDate>
			<dc:creator>rysen2888</dc:creator>
			<guid isPermaLink="false">362146@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I just tried installing gravity forms, but once i clicked activate i got Wordpress database error: mysql has gone away.&#60;/p&#62;
&#60;p&#62;I then click on pages, and everything is gone. I have to delete the plugin to see the pages/posts again and it really makes admin slow down and lag&#60;/p&#62;
&#60;p&#62;Here is a screenshot for the error.&#60;br /&#62;
&#60;a href=&#34;http://i.imgur.com/6S0wgqk.png&#34; rel=&#34;nofollow&#34;&#62;http://i.imgur.com/6S0wgqk.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Ive tried deleting and reinstalling, tho the error isnt showing anymore but it still removes all posts/pages until i re delete the plugin.&#60;/p&#62;
&#60;p&#62;Any help much appreciated&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>andrew carbn on "Using mysqli_real_escape_string with gform_after_submission and a mySQL database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-mysqli_real_escape_string-with-gform_after_submission-and-a-mysql-database#post-323487</link>
			<pubDate>Fri, 14 Jun 2013 14:51:48 +0000</pubDate>
			<dc:creator>andrew carbn</dc:creator>
			<guid isPermaLink="false">323487@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I think I'm correct in saying it is best practice to use mysqli_real_escape_string when pushing any user-generated text into a mySQL database.&#60;br /&#62;
I'm using the below code (which is tested and working) to push the submitted data from a gravity form into mySQL.&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
add_action(&#34;gform_after_submission_9&#34;, &#34;push_fields&#34;, 10, 2);&#60;br /&#62;
function push_fields($entry, $form){&#60;/p&#62;
&#60;p&#62;$uploaderName = $entry[&#34;1&#34;];&#60;br /&#62;
$organiserName = $entry[&#34;2&#34;];&#60;br /&#62;
$organiserEmail = $entry[&#34;3&#34;];&#60;br /&#62;
$organiserNumber = $entry[&#34;4&#34;];&#60;br /&#62;
$venueNumber = $entry[&#34;5&#34;];&#60;/p&#62;
&#60;p&#62;$con=mysqli_connect(&#34;hostname&#34;,&#34;username&#34;,&#34;password&#34;,&#34;dbname&#34;);&#60;br /&#62;
mysqli_query($con,&#34;INSERT INTO table (uploaderName, organiserName,&#60;br /&#62;
organiserEmail, organiserNumber, venueNumber) VALUES ('$uploaderName',&#60;br /&#62;
'$organiserName', '$organiserEmail', '$organiserNumber', '$venueNumber')&#34;);&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;So how do I use real_escape_string?&#60;/p&#62;
&#60;p&#62;I tried these two ideas but neither worked:&#60;br /&#62;
$uploaderName = mysqli_real_escape_string($entry[&#34;1&#34;]);&#60;br /&#62;
and&#60;br /&#62;
$uploaderNameX = $entry[&#34;1&#34;];&#60;br /&#62;
$uploaderName = mysqli_real_escape_string($uploaderNameX);&#60;/p&#62;
&#60;p&#62;And by &#34;neither worked&#34; I mean the first one crashed my entire site, and the second one just left that column blank in the mySQL table but entered all other info correctly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fabrams on "using gravity forms with a separate mysql db in wordpress"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gravity-forms-with-a-separate-mysql-db-in-wordpress#post-334884</link>
			<pubDate>Thu, 20 Jun 2013 16:44:39 +0000</pubDate>
			<dc:creator>fabrams</dc:creator>
			<guid isPermaLink="false">334884@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I want to save the data from gravity forms (wordpress dev version) into a separate mysql database so I can assign myphp admin user rights to someone just for the gravity forms' data, and to keep it separate from everything else in the wordpress mysql db. &#60;/p&#62;
&#60;p&#62;How do I set up gravity forms to a different mysql db?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>smartclouddesign on "gform_after_submission - writing to a MySQL database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_after_submission-writing-to-a-mysql-database#post-313520</link>
			<pubDate>Sun, 09 Jun 2013 22:49:41 +0000</pubDate>
			<dc:creator>smartclouddesign</dc:creator>
			<guid isPermaLink="false">313520@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi- I would like to take my form submission and write certain fields to a database. The fields I would need to get into variable form so I can write to the database would be name, email, website. The code below is what I found to get me started, but I don't know how to create the variables which will pull the associated fields I need.&#60;/p&#62;
&#60;p&#62;I have the code to write to the database, I just need to pull those variables from the form submission. If anyone can help, I'd really appreciate it.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Bryan&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
add_action('gform_after_submission', 'post_to_third_party', 10, 2);&#60;br /&#62;
function post_to_third_party($entry, $form) {&#60;/p&#62;
&#60;p&#62;//  Need to create variables with the form values name/email/website&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
?&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Coen Jacobs on "Populating from and writing to external database"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populating-from-and-writing-to-external-database#post-6402</link>
			<pubDate>Wed, 16 Jun 2010 16:35:17 +0000</pubDate>
			<dc:creator>Coen Jacobs</dc:creator>
			<guid isPermaLink="false">6402@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm working on a project and we're about to decide wether or not use GF for the job. Main concern is populating fields from an external database and write user input to the same external database. I've never done this before and I really don't know what's possible with GF and controlling external databases.&#60;/p&#62;
&#60;p&#62;There are possibilities to use GF-hooks and custom plugins, but I'm not sure if I'm able to alter what GF will do with the user input. And, even more important, are we able to hook into GF saving the contents/fields of a form so we can adjust the structure of the external database to it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>FFT on "Webservices &#38; Gravity Forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/webservices-gravity-forms#post-193971</link>
			<pubDate>Tue, 02 Apr 2013 04:14:36 +0000</pubDate>
			<dc:creator>FFT</dc:creator>
			<guid isPermaLink="false">193971@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I'm would like to know how I can call a webservice to pre-fill some fills directly from our database.&#60;/p&#62;
&#60;p&#62;Best regards,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>paire on "No databases available with Awp_rg_form (global)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/no-databases-available-with-awp_rg_form-global#post-194523</link>
			<pubDate>Tue, 02 Apr 2013 13:55:42 +0000</pubDate>
			<dc:creator>paire</dc:creator>
			<guid isPermaLink="false">194523@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;After updating my site to WordPress 3.5.1 every admin page dies with the message: &#34;No databases available with Awp_rg_form (global)&#34;. There aren't any warnings or notices in the PHP logs. &#60;/p&#62;
&#60;p&#62;The problem is fixed by removing the Gravity Forms plugin. &#60;/p&#62;
&#60;p&#62;Any idea what could be causing this issue?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jvmi on "Data Storage Capacity"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/data-storage-capacity#post-172607</link>
			<pubDate>Fri, 15 Mar 2013 18:06:37 +0000</pubDate>
			<dc:creator>jvmi</dc:creator>
			<guid isPermaLink="false">172607@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to determine the maximum storage capacity of the data collected via the forms? also,  is there a way to know when i am nearly that capacity?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rodolfo on "Creating survey style questions"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/creating-survey-style-questions#post-170668</link>
			<pubDate>Thu, 14 Mar 2013 00:58:54 +0000</pubDate>
			<dc:creator>rodolfo</dc:creator>
			<guid isPermaLink="false">170668@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a project that was written for me in PHP and saves to a MYSQL database. It is a somewhat complex survey style form. I recently purchased gravity forms, and wanted to determine if it is worth migrating my form to it. My custom form seems to be bug ridden, and I am considering gravity forms as something that could eliminate some headaches.&#60;/p&#62;
&#60;p&#62;I've attached 3 sample questions here, and I'd like to know if&#60;br /&#62;
a) these can be reproduced in gravity forms&#60;br /&#62;
b) how exactly I can do so&#60;br /&#62;
(I am new to this so any hand holding would be appreciated :-)&#60;/p&#62;
&#60;p&#62;Question 1&#60;br /&#62;
&#60;a href=&#34;http://www.dkmedia.net/question1.png&#34; rel=&#34;nofollow&#34;&#62;http://www.dkmedia.net/question1.png&#60;/a&#62;&#60;br /&#62;
This is relatively simple; There are instructions along the top row, then there are two columns with text field input. Each one needs a label, and the one on the left (name) should only accept text type characters, while the one on the right should only accept numbers.  The green + icon allows the user to add additional rows. I would like a maximum of 10 rows (2 columns/entries each).&#60;/p&#62;
&#60;p&#62;Question 4&#60;br /&#62;
&#60;a href=&#34;http://www.dkmedia.net/question4.png&#34; rel=&#34;nofollow&#34;&#62;http://www.dkmedia.net/question4.png&#60;/a&#62;&#60;br /&#62;
This question is simple, just a dropdown beside a textfield that is pre-populated with the value &#34;2013&#34;&#60;/p&#62;
&#60;p&#62;Question 5&#60;br /&#62;
&#60;a href=&#34;http://www.dkmedia.net/question5.png&#34; rel=&#34;nofollow&#34;&#62;http://www.dkmedia.net/question5.png&#60;/a&#62;&#60;br /&#62;
There are 3 rows with 2 columns each. Column 1 is a dropdown, column 2 should only accept numbers. User must fill in 3 rows. &#60;/p&#62;
&#60;p&#62;I know this is a lengthy request, but if this can be done within gravity forms, this will make a lot of my other questions quite a bit easier.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
Rodolfo
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rnmartinez on "Database Question"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/database-question#post-170540</link>
			<pubDate>Wed, 13 Mar 2013 22:57:24 +0000</pubDate>
			<dc:creator>rnmartinez</dc:creator>
			<guid isPermaLink="false">170540@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a project already within Wordpress that currently uses a custom made form that is relatively complex and difficult to manage.&#60;/p&#62;
&#60;p&#62;Apart from logic style questions and being able to,handle financial/math data (so execute some formulas), I need to be able to set variable names for each response, and retrieve them from the mysql database. Additionally, some questions will require answers from previous questions to form,possible responses. For example, if I indicate that {productOrService} variable = product, then a later answer to a question may be written as &#34;my {productOrService} will compete on price&#34;, and the user will see &#34;my product will compete on price.&#34;.&#60;/p&#62;
&#60;p&#62;Can Gravity forms meet these needs?&#60;/p&#62;
&#60;p&#62;Rodolfo
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
