<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a Form that will Search a MySQL Database</title>
	<atom:link href="http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database/feed" rel="self" type="application/rss+xml" />
	<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-form-that-will-search-a-mysql-database</link>
	<description></description>
	<lastBuildDate>Fri, 10 Feb 2012 08:37:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Tapashm42</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7857</link>
		<dc:creator>Tapashm42</dc:creator>
		<pubDate>Fri, 10 Feb 2012 08:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7857</guid>
		<description>if provide multiple search options then it would be more helpful to me.</description>
		<content:encoded><![CDATA[<p>if provide multiple search options then it would be more helpful to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7846</link>
		<dc:creator>Vaibhav</dc:creator>
		<pubDate>Wed, 01 Feb 2012 10:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7846</guid>
		<description>Easy Method for undershand

Thanks a Lot</description>
		<content:encoded><![CDATA[<p>Easy Method for undershand</p>
<p>Thanks a Lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7836</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 20 Jan 2012 19:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7836</guid>
		<description>That is explained above. If you are having a specific problem I&#039;d be glad to help. </description>
		<content:encoded><![CDATA[<p>That is explained above. If you are having a specific problem I&#8217;d be glad to help. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BanuThangaraj</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7835</link>
		<dc:creator>BanuThangaraj</dc:creator>
		<pubDate>Fri, 20 Jan 2012 18:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7835</guid>
		<description>how to display the content  from the user form after click submit button in the admin form</description>
		<content:encoded><![CDATA[<p>how to display the content  from the user form after click submit button in the admin form</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7834</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 20 Jan 2012 13:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7834</guid>
		<description>The % is intentional. It is a wild card character in the query so that the term will be found within other phrases.</description>
		<content:encoded><![CDATA[<p>The % is intentional. It is a wild card character in the query so that the term will be found within other phrases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prem</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7832</link>
		<dc:creator>Prem</dc:creator>
		<pubDate>Fri, 20 Jan 2012 05:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7832</guid>
		<description>small fault dude... make it $term instead of %$term%.. then code goes welllanyway thanks for postin.....</description>
		<content:encoded><![CDATA[<p>small fault dude&#8230; make it $term instead of %$term%.. then code goes welllanyway thanks for postin&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7829</link>
		<dc:creator>Marek</dc:creator>
		<pubDate>Thu, 19 Jan 2012 14:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7829</guid>
		<description>Above  paste 
&lt;code&gt;

$numresults=mysql_query($sql);
$numrows=mysql_num_rows($numresults);

&lt;/code&gt;

And then paste this code in the place you want the message to show up

&lt;code&gt;

&lt;?
            
			    if ($numrows == 0)
                   {
                    echo &quot;Sorry, your search: &quot; . $term . &quot; returned zero results&quot;;
                   }
				   else {
				    echo &quot;Search Result for &quot; . $term . &quot;&quot;; 
				   }
			
			?&gt;

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Above  paste<br />
<code></p>
<p>$numresults=mysql_query($sql);<br />
$numrows=mysql_num_rows($numresults);</p>
<p></code></p>
<p>And then paste this code in the place you want the message to show up</p>
<p><code></p>
<p>&lt;?</p>
<p>			    if ($numrows == 0)<br />
                   {<br />
                    echo &quot;Sorry, your search: " . $term . " returned zero results";<br />
                   }<br />
				   else {<br />
				    echo "Search Result for " . $term . "";<br />
				   }</p>
<p>			?&gt;</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7828</link>
		<dc:creator>Marek</dc:creator>
		<pubDate>Thu, 19 Jan 2012 14:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7828</guid>
		<description>Forgive me for my mistake :(. In order ro display messages the way u want just add

&lt;code&gt;

&lt;?
            
			    if ($numrows == 0)
                   {
                    echo &quot;Sorry, your search: &quot; . $term . &quot; returned zero results&quot;;
                   }
				   else {
				    echo &quot;Search Result for &quot; . $term . &quot;&quot;; 
				   }
			
			?&gt;

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Forgive me for my mistake <img src='http://teamtutorials.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . In order ro display messages the way u want just add</p>
<p><code></p>
<p>&lt;?</p>
<p>			    if ($numrows == 0)<br />
                   {<br />
                    echo &quot;Sorry, your search: " . $term . " returned zero results";<br />
                   }<br />
				   else {<br />
				    echo "Search Result for " . $term . "";<br />
				   }</p>
<p>			?&gt;</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7827</link>
		<dc:creator>Marek</dc:creator>
		<pubDate>Thu, 19 Jan 2012 10:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7827</guid>
		<description>Add

&lt;code&gt;

if (!isset($term))
  {
  echo &quot;We dont seem to have a search parameter!&quot;;
  exit;
  }

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Add</p>
<p><code></p>
<p>if (!isset($term))<br />
  {<br />
  echo "We dont seem to have a search parameter!";<br />
  exit;<br />
  }</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bestwebstation</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7818</link>
		<dc:creator>Bestwebstation</dc:creator>
		<pubDate>Wed, 18 Jan 2012 04:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7818</guid>
		<description>This is excellent! Does anyone has a simple script like this for entire site content search?</description>
		<content:encoded><![CDATA[<p>This is excellent! Does anyone has a simple script like this for entire site content search?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

