CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `active` tinyint(1) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ) CONNECTION ?php $connection = mysqli_connect('localhost', 'root', 'Rvm@i[9)0?~='); if (!$connection){ die("Database Connection Failed" . mysqli_error($connection)); } $select_db = mysqli_select_db($connection, 'test'); if (!$select_db){ die("Database Selection Failed" . mysqli_error($connection)); } LOGIC MO TO!!!!! Logout"; }else{ //3.2 When the user visits the page first time, simple login form will be displayed. ?> BOOMBAYAHHHH!! ?php session_start(); session_destroy(); header('Location: login.php'); ?>