Create a simple registration and login system using the PHP and MySQL. This program is comprised of two parts: in the first part, create a user registration form, and in the second part we'll create a login form, as well as a welcome page and a logout script.
Concept Used In This Practical :-This Practical demonstrates how to create a login page with
MySQL Data base.
Sample code :
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";
?>
Screenshots:
Comments
Post a Comment