16 comments

  1. mmtuts mmtuts

    Hi everyone 🙂 There is an updated version of this tutorial, which you can find on the following link:

    first
  2. Jake evermore Jake evermore

    Hey~ I really like your vids!
    It's just that I got a problem:

    <?php
    include 'dbh.php';

    $first = $_POST['first'];
    $last = $_POST['last'];
    $uid = $_POST['uid'];
    $pwd = $_POST['pwd'];

    echo $first."<br>";
    echo $last."<br>";
    echo $pwd."<br>";
    echo $uid."<br>";

    ^When I try and 'echo' this out I get:

    Notice: Undefined index: first in D:XampphtdocsSupermarktsignup.php on line 4

    Notice: Undefined index: last in D:XampphtdocsSupermarktsignup.php on line 5

    Notice: Undefined index: uid in D:XampphtdocsSupermarktsignup.php on line 6

    Notice: Undefined index: pwd in D:XampphtdocsSupermarktsignup.php on line 7

    Can someone please help me with this?

    second
  3. mark61196 mark61196

    hi, at 24m, i replace
    if(!$row = $result->fetch_assoc()){
    with
    if(!$row = mysqli_fetch_assoc($result)){
    but it give me an error:"Parse error: syntax error, unexpected '' (T_STRING) in C:xampphtdocsclogin.php on line 10"

    whats wrong?

    login.php
    <?php
    session_start();
    $conn = mysqli_connect("localhost", "root", "", "login");
    $uid = $_POST['username'];
    $pwd = $_POST['password'];

    $sql = "SELECT * FROM utenti WHERE username='$uid' AND password='$pwd'";
    $result = mysqli_query($conn, $sql);

    if(!$row = mysqli_fetch_assoc($result)){
    header("Location: login.php");
    }else{
    $_SESSION['username'] = $row['username'];
    header("Location: index.php");
    }
    ?>

    third
  4. Ikhouvan MANDJES Ikhouvan MANDJES

    a simpler way to look if your data has been send from the form the the other file is var_dump

    4th
  5. TheDerpyHoodie TheDerpyHoodie

    thanks for showing me how to make a login system so if i wanted to make an app or a website, i would know how to make a login system!

    5th
  6. Benjaminosa23 Benjaminosa23

    You are my hero, thank you so much for these videos

    6th
  7. blended blended

    i watched millions of tutorials…
    but this is something that worked.. :-O <3
    subbed 🙂
    because… Why not?

    7th
  8. Philcob Josol Philcob Josol

    This is what happens when I test the signup form. 15:40

    <?php

    include 'dbh.php';

    $first = $_POST['first'];
    $last = $_POST['last'];
    $uid = $_POST['uid'];
    $pwd = $_POST['pwd'];

    echo $first."<br>";
    echo $last."<br>";
    echo $uid."<br>";
    echo $pwd."<br>";

    8th
  9. Dhruv Rathod Dhruv Rathod

    Loved it! I have never seen coding explained so easily. Thank you.

    9th
  10. AlphaCentauri6 AlphaCentauri6

    I'm stuck around the login form. It keeps throwing me "HTML Error 500".

    10th
  11. Mist Mist

    i need assistance, when i have copied you i can make a new user but when it comes to logging in i can login even if i have entered the wrong password? any help appreciated

    11th
  12. rashid maqbooljutt rashid maqbooljutt

    sir you are great

    12th
  13. Shamsuddeen Omacy Shamsuddeen Omacy

    Nice video! I like all your tutorials. Because, why no?

    13th
  14. FunGamers team FunGamers team

    Hello.
    Is mysql a great possibility for making a database for a website like facebook, youtube and spotify in the same time?

    14th
  15. reza jafari reza jafari

    I really wanna to thumb up all of your videos , but it is off

    15th
  16. MrZakrencony MrZakrencony

    i'm sorry to annoy you, how to prevent many people from logging on the same account?
    unless you explain that in one of the further videos, then i'll be sure to find it

    16th

Leave a Reply