<?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>Sun, 20 May 2012 13:40: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: Danish Farman</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7981</link>
		<dc:creator>Danish Farman</dc:creator>
		<pubDate>Sun, 20 May 2012 13:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7981</guid>
		<description>                        simple jonah type in following:


 
                              
type in 
between div tags
type in between php tags
echo &quot;Error:sorry this name does not exist in the database....generated error&quot; ;</description>
		<content:encoded><![CDATA[<p>simple jonah type in following:</p>
<p>type in<br />
between div tags<br />
type in between php tags<br />
echo &#8220;Error:sorry this name does not exist in the database&#8230;.generated error&#8221; ;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danish Farman</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7980</link>
		<dc:creator>Danish Farman</dc:creator>
		<pubDate>Sun, 20 May 2012 13:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7980</guid>
		<description>simple jonah type in following:

 </description>
		<content:encoded><![CDATA[<p>simple jonah type in following:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kabil M</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7970</link>
		<dc:creator>Kabil M</dc:creator>
		<pubDate>Thu, 10 May 2012 17:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7970</guid>
		<description>Dear,

Watch this url

http://www.100view.com/PHP%20-%20MySQL%20_fetch_array.htm

http://www.100view.com/PHP%20-%20MySQL%20Update%20Example.htm

http://www.100view.com/PHP%20-%20MySQL%20Database.htm</description>
		<content:encoded><![CDATA[<p>Dear,</p>
<p>Watch this url</p>
<p><a href="http://www.100view.com/PHP%20-%20MySQL%20_fetch_array.htm" rel="nofollow">http://www.100view.com/PHP%20-%20MySQL%20_fetch_array.htm</a></p>
<p><a href="http://www.100view.com/PHP%20-%20MySQL%20Update%20Example.htm" rel="nofollow">http://www.100view.com/PHP%20-%20MySQL%20Update%20Example.htm</a></p>
<p><a href="http://www.100view.com/PHP%20-%20MySQL%20Database.htm" rel="nofollow">http://www.100view.com/PHP%20-%20MySQL%20Database.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gildas</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7966</link>
		<dc:creator>Gildas</dc:creator>
		<pubDate>Mon, 07 May 2012 21:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7966</guid>
		<description>It worked like charm, only what to be changed is logins and DB details and you&#039;re done.</description>
		<content:encoded><![CDATA[<p>It worked like charm, only what to be changed is logins and DB details and you&#8217;re done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonah</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7964</link>
		<dc:creator>jonah</dc:creator>
		<pubDate>Sun, 06 May 2012 03:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7964</guid>
		<description>Great code....
But how would I generate an error message if the name the user enters in the textfield is not in the database.

e.g. Search: &#039;bobb&#039;//user types bobb

Error:sorry this name does not exist in the database....//generated error</description>
		<content:encoded><![CDATA[<p>Great code&#8230;.<br />
But how would I generate an error message if the name the user enters in the textfield is not in the database.</p>
<p>e.g. Search: &#8216;bobb&#8217;//user types bobb</p>
<p>Error:sorry this name does not exist in the database&#8230;.//generated error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneeq Tariq</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7954</link>
		<dc:creator>Aneeq Tariq</dc:creator>
		<pubDate>Fri, 27 Apr 2012 08:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7954</guid>
		<description>
This is the simplest code to select and display records from MySQL database table and display in PHP.

$cn=mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());
mysql_select_db($db_name,$cn) or die(mysql_error());

$sql = “SELECT field_name FROM table_name”;
$rs = mysql_query($sql) or die(mysql_error());

while($row = mysql_fetch_array($rs)){

echo $field_name = $row[&quot;field_name&quot;];
echo “”;

}
mysql_free_result($rs);


Source: 
&lt;a href=&quot;http://phphelp.co/2012/04/26/how-to-select-and-display-mysql-records-data-in-php/&quot; rel=&quot;nofollow&quot;&gt;http://phphelp.co/2012/04/26/how-to-select-and-display-mysql-records-data-in-php/&lt;/a&gt;

OR 

&lt;a href=&quot;http://addr.pk/acfd&quot; rel=&quot;nofollow&quot;&gt;http://addr.pk/acfd&lt;/a&gt;
 </description>
		<content:encoded><![CDATA[<p>This is the simplest code to select and display records from MySQL database table and display in PHP.</p>
<p>$cn=mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());<br />
mysql_select_db($db_name,$cn) or die(mysql_error());</p>
<p>$sql = “SELECT field_name FROM table_name”;<br />
$rs = mysql_query($sql) or die(mysql_error());</p>
<p>while($row = mysql_fetch_array($rs)){</p>
<p>echo $field_name = $row["field_name"];<br />
echo “”;</p>
<p>}<br />
mysql_free_result($rs);</p>
<p>Source:<br />
<a href="http://phphelp.co/2012/04/26/how-to-select-and-display-mysql-records-data-in-php/" rel="nofollow">http://phphelp.co/2012/04/26/how-to-select-and-display-mysql-records-data-in-php/</a></p>
<p>OR </p>
<p><a href="http://addr.pk/acfd" rel="nofollow">http://addr.pk/acfd</a><br />
 </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaa</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7952</link>
		<dc:creator>Aaa</dc:creator>
		<pubDate>Tue, 24 Apr 2012 07:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7952</guid>
		<description>And if you have 2 terms you can use

$term1 = $_POST[&#039;term1&#039;]; $term2 = $_POST[&#039;term2&#039;];
$sql = mysql_query(&quot;SELECT * FROM table WHERE firstname like &#039;%$term1%&#039; and lastname like &#039;%$term2%&#039;&quot; );</description>
		<content:encoded><![CDATA[<p>And if you have 2 terms you can use</p>
<p>$term1 = $_POST['term1']; $term2 = $_POST['term2'];<br />
$sql = mysql_query(&#8220;SELECT * FROM table WHERE firstname like &#8216;%$term1%&#8217; and lastname like &#8216;%$term2%&#8217;&#8221; );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dar12345</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7950</link>
		<dc:creator>dar12345</dc:creator>
		<pubDate>Fri, 20 Apr 2012 06:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7950</guid>
		<description>dude can you make a simple login with database .. it so hard for me to understand those !!  I wish i could be great like you </description>
		<content:encoded><![CDATA[<p>dude can you make a simple login with database .. it so hard for me to understand those !!  I wish i could be great like you </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dar12345</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7949</link>
		<dc:creator>dar12345</dc:creator>
		<pubDate>Fri, 20 Apr 2012 06:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7949</guid>
		<description>thanks men your a php-god ,
</description>
		<content:encoded><![CDATA[<p>thanks men your a php-god ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ns</title>
		<link>http://teamtutorials.com/web-development-tutorials/php-tutorials/creating-a-form-that-will-search-a-mysql-database#comment-7946</link>
		<dc:creator>ns</dc:creator>
		<pubDate>Thu, 19 Apr 2012 18:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1601#comment-7946</guid>
		<description>How do I make this happen in WordPress?</description>
		<content:encoded><![CDATA[<p>How do I make this happen in WordPress?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

