User Registration and Login using PHP Oops Concepts | PHP Gurukul
In this tutorial we will learn how user can register and login using PHP Oops concepts. File Structure for this tutorial : index.php (User Registration form) sigin.php (User signin form) function.php (Database connection and function for username availability, registration, and login) welcome.php (After login user will redirect to this page) logout.php (for logout) MySQL table tblusers structure used in this tutorial 1 2 3 4 5 6 7 8 CREATE TABLE ` tblusers ` ( ` id ` int ( 11 ) NOT NULL , ` FullName ` varchar ( 120 ) DEFAULT NULL , ` Username ` varchar ( 120 ) DEFAULT NULL , ` UserEmail ` varchar ( 200 ) DEFAULT NULL , ` Password ` varchar ( 250 ) DEFAULT NULL , ` RegDate ` timestamp NULL DEFAULT CURRENT _ TIMESTAMP ) ENGINE = InnoDB DEFAULT CHARSET = latin1 ; Now creates a function.php. In this file class Class DB_con, Inside this class define the database connection.Now in...