<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Check username availability and validation using ajax,php</title>
	<atom:link href="http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/</link>
	<description>Technology tips for all</description>
	<lastBuildDate>Sun, 13 Nov 2011 09:56:09 +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: Nandini</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-246833</link>
		<dc:creator>Nandini</dc:creator>
		<pubDate>Mon, 26 Sep 2011 13:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-246833</guid>
		<description>hi! can u please explain this part to me


echo json_encode(array(&#039;code&#039;  =&gt;  -1,
  &#039;result&#039;  =&gt;  &#039;Invalid username, please try again.&#039;
  ));</description>
		<content:encoded><![CDATA[<p>hi! can u please explain this part to me</p>
<p>echo json_encode(array(&#8216;code&#8217;  =&gt;  -1,<br />
  &#8216;result&#8217;  =&gt;  &#8216;Invalid username, please try again.&#8217;<br />
  ));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: queries</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-227084</link>
		<dc:creator>queries</dc:creator>
		<pubDate>Fri, 02 Sep 2011 17:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-227084</guid>
		<description>Please specify what exactly the statement should be if I use JS callback method. I am getting error due to eval method.</description>
		<content:encoded><![CDATA[<p>Please specify what exactly the statement should be if I use JS callback method. I am getting error due to eval method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shgun</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-187310</link>
		<dc:creator>shgun</dc:creator>
		<pubDate>Mon, 18 Jul 2011 12:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-187310</guid>
		<description>i m not able to understand the whole code. cn u just give me how it functions in a general way</description>
		<content:encoded><![CDATA[<p>i m not able to understand the whole code. cn u just give me how it functions in a general way</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaimin</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-163025</link>
		<dc:creator>jaimin</dc:creator>
		<pubDate>Wed, 22 Jun 2011 13:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-163025</guid>
		<description>hi sachin 
i want check availability code for number.
in my application i want unique id two times so first field i gave auto increment but other field also i want unique and it is a unique number can you give me the code for this and php code and javascript code and html code pls help me i am totally fresher in this field</description>
		<content:encoded><![CDATA[<p>hi sachin<br />
i want check availability code for number.<br />
in my application i want unique id two times so first field i gave auto increment but other field also i want unique and it is a unique number can you give me the code for this and php code and javascript code and html code pls help me i am totally fresher in this field</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mwathi</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-150329</link>
		<dc:creator>Mwathi</dc:creator>
		<pubDate>Wed, 25 May 2011 09:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-150329</guid>
		<description>Change your database, you must have left it as (db) and not ($Database)</description>
		<content:encoded><![CDATA[<p>Change your database, you must have left it as (db) and not ($Database)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MWathi</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-150328</link>
		<dc:creator>MWathi</dc:creator>
		<pubDate>Wed, 25 May 2011 09:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-150328</guid>
		<description>Thanks for this code, works well, but some parts need to be changed, for instance, switching:                                                                          echo json_encode(array(‘code’ =&gt; 0, ‘result’ =&gt; “Sorry but username $user is already taken.”        with:                                                                                                echo json_encode(array(‘code’ =&gt; 1,
‘result’ =&gt; “Success,username $user is still available.” and VICE VERSA.</description>
		<content:encoded><![CDATA[<p>Thanks for this code, works well, but some parts need to be changed, for instance, switching:                                                                          echo json_encode(array(‘code’ =&gt; 0, ‘result’ =&gt; “Sorry but username $user is already taken.”        with:                                                                                                echo json_encode(array(‘code’ =&gt; 1,<br />
‘result’ =&gt; “Success,username $user is still available.” and VICE VERSA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jagannath Gummaluri</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-69674</link>
		<dc:creator>Jagannath Gummaluri</dc:creator>
		<pubDate>Sat, 11 Dec 2010 01:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-69674</guid>
		<description>Hello Sachin,

I am going to try the above code which you have given. But I need lot of help in making a dynamic driven website in PHP and need lot and lots of help from you.... I hope you will help me as I go ahead with my work.

Thanks and Regards,
Jagannath G</description>
		<content:encoded><![CDATA[<p>Hello Sachin,</p>
<p>I am going to try the above code which you have given. But I need lot of help in making a dynamic driven website in PHP and need lot and lots of help from you&#8230;. I hope you will help me as I go ahead with my work.</p>
<p>Thanks and Regards,<br />
Jagannath G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manju</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-67993</link>
		<dc:creator>manju</dc:creator>
		<pubDate>Mon, 06 Dec 2010 12:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-67993</guid>
		<description>mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;kspl1234&quot;);
mysql_select_db(&quot;users&quot;);
 $user = strip_tags(trim($_REQUEST[&#039;username&#039;]));
$sql= mysql_query(&quot;SELECT * FROM users where username=&#039;&quot;.$user.&quot;&#039; &quot; ); 
$num= mysql_num_rows($sql);
$row= mysql_fetch_array($sql);
if($sql)
	{	
	echo &quot;Not available&quot;;
	}
	else 
	{
		echo &quot;Available&quot;;
	}</description>
		<content:encoded><![CDATA[<p>mysql_connect(&#8220;localhost&#8221;,&#8221;root&#8221;,&#8221;kspl1234&#8243;);<br />
mysql_select_db(&#8220;users&#8221;);<br />
 $user = strip_tags(trim($_REQUEST['username']));<br />
$sql= mysql_query(&#8220;SELECT * FROM users where username=&#8217;&#8221;.$user.&#8221;&#8216; &#8221; );<br />
$num= mysql_num_rows($sql);<br />
$row= mysql_fetch_array($sql);<br />
if($sql)<br />
	{<br />
	echo &#8220;Not available&#8221;;<br />
	}<br />
	else<br />
	{<br />
		echo &#8220;Available&#8221;;<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manju</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-67991</link>
		<dc:creator>manju</dc:creator>
		<pubDate>Mon, 06 Dec 2010 12:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-67991</guid>
		<description>Hi sachin, firstly thanks for your code its working without mysql,, and wen im try to do with mysql its not even trying to functionate... please help me out.....
here is my code..


 </description>
		<content:encoded><![CDATA[<p>Hi sachin, firstly thanks for your code its working without mysql,, and wen im try to do with mysql its not even trying to functionate&#8230; please help me out&#8230;..<br />
here is my code..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-65031</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Sun, 28 Nov 2010 22:43:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-65031</guid>
		<description>I have no errors using this, but it keeps telling the username is available although its already registered.

$query = &quot;Select * from USERS where username = &#039;$user&#039; &quot;;

This is correct, i have a username field and a table called USERS.

Also added these as you suggested:
$result = mysql_query($query);
$available = mysql_num_rows($result);

dunno whats wrong</description>
		<content:encoded><![CDATA[<p>I have no errors using this, but it keeps telling the username is available although its already registered.</p>
<p>$query = &#8220;Select * from USERS where username = &#8216;$user&#8217; &#8220;;</p>
<p>This is correct, i have a username field and a table called USERS.</p>
<p>Also added these as you suggested:<br />
$result = mysql_query($query);<br />
$available = mysql_num_rows($result);</p>
<p>dunno whats wrong</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pooja</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-61144</link>
		<dc:creator>pooja</dc:creator>
		<pubDate>Tue, 16 Nov 2010 08:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-61144</guid>
		<description>hi... can u plz send me the code of vadition and events using ajax..plz send me as soon as possible b&#039;coz i hve interve the day after tommorow.....
thanxs</description>
		<content:encoded><![CDATA[<p>hi&#8230; can u plz send me the code of vadition and events using ajax..plz send me as soon as possible b&#8217;coz i hve interve the day after tommorow&#8230;..<br />
thanxs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-57531</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 06 Nov 2010 12:50:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-57531</guid>
		<description>I know that. But it seems so work now, after i cleared the browser cache.

One other thing tho... how can i change it so i don´t have to press the submit button all the time? (mouseclick would be much better.)</description>
		<content:encoded><![CDATA[<p>I know that. But it seems so work now, after i cleared the browser cache.</p>
<p>One other thing tho&#8230; how can i change it so i don´t have to press the submit button all the time? (mouseclick would be much better.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sachin Khosla</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-57357</link>
		<dc:creator>Sachin Khosla</dc:creator>
		<pubDate>Sat, 06 Nov 2010 03:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-57357</guid>
		<description>Daniel, 

You need to check that your MySQL returns proper results and then accordingly populate the $available variable .. Since this message depends on simple if/else loop/</description>
		<content:encoded><![CDATA[<p>Daniel, </p>
<p>You need to check that your MySQL returns proper results and then accordingly populate the $available variable .. Since this message depends on simple if/else loop/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-57153</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 05 Nov 2010 18:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-57153</guid>
		<description>I really like this simple code, BUT i can´t get it to work as it should.
I´m trying to use the code with my database, (with existing users), but the script says &quot;Sorry but username trwtwrtwrt is already taken.&quot;.

I have tried many bogus usernames, and all seems to be &quot;taken&quot; regarding this script.</description>
		<content:encoded><![CDATA[<p>I really like this simple code, BUT i can´t get it to work as it should.<br />
I´m trying to use the code with my database, (with existing users), but the script says &#8220;Sorry but username trwtwrtwrt is already taken.&#8221;.</p>
<p>I have tried many bogus usernames, and all seems to be &#8220;taken&#8221; regarding this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.digimantra.com/technology/javascript/check-username-availability-validation-ajaxphp/#comment-47006</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sun, 03 Oct 2010 22:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.digimantra.com/?p=2344#comment-47006</guid>
		<description>I get the same thing in IE. I copied the code from the demo page. Any ideas?</description>
		<content:encoded><![CDATA[<p>I get the same thing in IE. I copied the code from the demo page. Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

