In this video, you will learn how to integrate an admin panel in php and setup the header, footer and sidebar for the admin dashboard.
PHP Admin Panel Playlist :
Admin dashboard link :
If the video helps you, hit the like button and subscribe to the channel. If you have any doubts or suggestions, drop them in the comments below and i will answer them.
Thanks for watching
Book a Zoom call :
Buy me a coffee :
Follow me on instagram :
source
This post was automatic generated with this wp-automatic-plugin
Choose what? between PHP or Laravel. Thanks.
Why is my cards sticking in the left they go by 2s only.. helpppp
this is the register and login code
<?php
session_start();
include('../config/dbcon.php');
if(isset($_POST['register_btn']))
{
$name = mysqli_real_escape_string($con, $_POST['name']);
$phone = mysqli_real_escape_string($con, $_POST['phone']);
$email = mysqli_real_escape_string($con, $_POST['email']);
$password = mysqli_real_escape_string($con, $_POST['password']);
$cpassword = mysqli_real_escape_string($con, $_POST['cpassword']);
$check_email_query = "SELECT email FROM users WHERE email=' $email'";
$check_email_query_run = mysqli_query($con, $check_email_query);
if(mysqli_num_rows($check_email_query_run) > 0)
{
$_SESSION['message'] = "Email already exist";
header('Location: ../register.php');
}
else
{
if($password == $cpassword)
{
$insert_query = "INSERT INTO users (name,phone,email,password) VALUES (' $name','$phone',' $email',' $password') ";
$insert_query_run = mysqli_query($con, $insert_query);
if($insert_query_run)
{
$_SESSION['message'] = "Registered successfully";
header('Location: ../login.php');
}
else
{
$_SESSION['message'] = "Error try it again";
header('Location: ../register.php');
}
}
else
{
$_SESSION['message'] = "Passwords do not match try it again";
header('Location: ../register.php');
}
}
}
else if(isset($_POST['login_btn']))
{
$email = mysqli_real_escape_string($con, $_POST['email']);
$password = mysqli_real_escape_string($con, $_POST['password']);
$login_query = "SELECT * FROM users WHERE email='$email' AND password='$password' ";
$login_query_run = mysqli_query($con, $login_query);
if(mysqli_num_rows($login_query_run) > 0)
{
$_SESSION['auth'] = true;
$userdata = mysqli_fetch_array($login_query_run);
$username = $userdata['name'];
$useremail = $userdata['email'];
$_SESSION['auth_user'] = [
'name' => $username,
'email' => $useremail
];
$_SESSION['message'] = "Logged in successfully";
header('Location: ../index.php');
}
else
{
$_SESSION['message'] = "Invalid credentials";
header('Location: ../login.php');
}
}
?>
Hello thank for the tutorails please i have some problem with the number 5 videos which advance login system, my login is not working when im inserting the correct email and password
Sir my materials dashboard.min.css and bootstrap.min.css is not working because they show some error like (webkit-text-size-adjust) that syntax give green underline can you give me idea to solved that problem
Can i get the source code?
❣️ p͓̽r͓̽o͓̽m͓̽o͓̽s͓̽m͓̽
A very good series, I can't wait for the other videos.
Thank you sir