<?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: Conditional statement to check game status and week using database in Wordpress</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-to-check-game-status-and-week-using-database-in-wordpress</link>
		<description>Gravity Support Forums Topic: Conditional statement to check game status and week using database in Wordpress</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:12:35 +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/conditional-statement-to-check-game-status-and-week-using-database-in-wordpress" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Conditional statement to check game status and week using database in Wordpress"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-to-check-game-status-and-week-using-database-in-wordpress#post-148226</link>
			<pubDate>Sun, 17 Feb 2013 02:30:37 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">148226@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That code is added to your theme's functions.php file.  &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F#PHP&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F#PHP&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This filter:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;gform_notification_email_28&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Will run at the proper time to change the notification email, for form 28.  That is the reason for the _28 on the end.&#60;/p&#62;
&#60;p&#62;If you need more specific assistance, please open a new topic and we'll address your questions  there.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>alangood on "Conditional statement to check game status and week using database in Wordpress"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-to-check-game-status-and-week-using-database-in-wordpress#post-146736</link>
			<pubDate>Wed, 13 Feb 2013 18:36:57 +0000</pubDate>
			<dc:creator>alangood</dc:creator>
			<guid isPermaLink="false">146736@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Where do you put that code from your pastebin.com link?  Is it added to the functions.php or a specific gravity forms code?  How do you connect it to the gravity form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Conditional statement to check game status and week using database in Wordpress"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-to-check-game-status-and-week-using-database-in-wordpress#post-83498</link>
			<pubDate>Wed, 24 Oct 2012 23:21:27 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">83498@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Querying the database is outside the realm of support we can give for Gravity Forms.   However, here is a general approach to querying a custom MySQL database table &#60;a href=&#34;http://pastebin.com/8BxAPgka&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/8BxAPgka&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That is part of code which matched up an input account ID with an email address which was stored in the database.  You won't need most of that, but the connection details and how to perform the query and how to return and loop  through the results should be helpful.&#60;/p&#62;
&#60;p&#62;Let us know when you get stuck.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rinths on "Conditional statement to check game status and week using database in Wordpress"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-statement-to-check-game-status-and-week-using-database-in-wordpress#post-83453</link>
			<pubDate>Wed, 24 Oct 2012 21:46:27 +0000</pubDate>
			<dc:creator>rinths</dc:creator>
			<guid isPermaLink="false">83453@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a request where I want to use a conditional statement which checks if the user's team is playing home or away for that week, this data is stored in a custom database in WordPress, and then display a form according to the result. &#60;/p&#62;
&#60;p&#62;For example: team a is playing home this week, so the result would show the users team name and and display the status of the game to be either home or away (based on which date the query was ran) this would then re-direct the user to the correct form to choose their players for that game. &#60;/p&#62;
&#60;p&#62;I believe a hook and filter is required to perform this function? But how do I query the database, I have seen similar queries for WP posts but not for a custom database table?&#60;/p&#62;
&#60;p&#62;My problem is that little knowledge of PHP, hence have used conditional logic using check boxes for the time being.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
