Part 7 Practical 4 : Create a simple registration and login system using the PHP and MySQL.


ScreenShot



Concept Used In This Practical :-This Practical demonstrates how to create a login page with 

MySQL Data base.

Sample code :

<?php
$servername = "localhost";
$uname = "username";
$pw = "password";

// Create connection
$conn=mysqli_connect($servername,$uname,$pw);

// Check connection
if (!$conn) 
    die("Connection failed: " . mysqli_connect_error());
else
    echo "Connected successfully";


?>


Demo of form