Part 1 – PHP Admin Panel: How …

0 0
Read Time:28 Second



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

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Bootstrap Tutorial in Hindi Wi… Previous post Bootstrap Tutorial in Hindi Wi…
Create movie download site wit… Next post Create movie download site wit…

9 thoughts on “Part 1 – PHP Admin Panel: How …

  1. 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');
    }
    }

    ?>

  2. 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

  3. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!