Enable disable functionality gives the administrator more control on the site.
The administrator can directly control the users from its dashboard by either restrict access to some area of the site or enable disable the user.
This is very efficient when there are multiple types of the user exists on the site e.g. admin, student, professor, etc.
In this tutorial, I am using jQuery AJAX for this and creating an extra field on the MySQL table.