December 21, 2014 9:26 am

How to check live username availability with jQuery & PHP

I have received requests from my user to write tutorial on live username availability using PHP and jQuery so this tutorial show you that how you can implement live username availability checker in your website signup forms or anywhere you need. This tutorial is very simple and easy to integrate and a live demo is available to test it before downloading the script.

How to check live username availability with jQuery & PHP

Read Also: How to Integrate live search in PHP and MySQL with jQuery

Database design and table:
database name => phpgang
table name => users
column names => id, username, email

db.sql

Database file run in your mysql to create database and add data in table.

db.php

Database configuration file edit database name, user, password and dbname as per your configuration.

available.php

File contains code to check that your typed user name exists in database or not and send validated or invalid to your jQuery code.

 index.html

This file contains HTML, CSS and jQuery to validate username.

That’s all for this article we will share more articles and please share this tutorial with your friends and write your problems in comments.

Author Huzoor Bux

I am Huzoor Bux from Karachi (Pakistan). I have been working as a PHP Developer from last 5+ years, and its my passion to learn new things and implement them as a practice. Basically I am a PHP developer but now days exploring more in HTML5, CSS and jQuery libraries.


Tutorial Categories:
  • Vaibhav

    Awesome tutorial… but i face one problem in this, when we write “huzoorbux” it’s working fine but when we copy “huzoorbux” and paste into the input field then it’s not working.

    • huzoorbux

      Just checked its working perfect please check this again.

    • Guest

      Thank you

  • Manisankar

    Where did you write jquery function call?

    • huzoorbux

      Oops forgot to add in tutorial just update and added jquery function please check now.

  • satish

    not getting where the jquery function call ?
    please let me know on which page it it?

    • huzoorbux

      jQuery added in index.html and please download code again.

  • satish

    thank you

  • thaw

    Although i subscribe your link . command to me to subscribe again. and then i can’t download anything.

  • Jagdish

    Dear Sir, am getting problem of developing comment systeme like facebook, please can you share me.

  • ankit

    thanks for the tutorial https://www.twekr.com

  • Razor Mureithi

    Thax