PHP Full Login System

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • Support my patreon game: / giannismarinakis
    Unity 3D FPS Multiplayer series: • Unity Multiplayer FPS ...
    PHP 5 Minutes Series: • PHP 5 Minutes Series
    PHP Forum series: • Forum PHP Tutorial
    5 Minutes PHP Register System: • PHP Tutorial: 5 Minute...
    Subscribe Here: / thelolgam. . or Like the Video!
    If you have any questions/problems leave a comment bellow!

ความคิดเห็น • 148

  • @TheKobeyaoming01
    @TheKobeyaoming01 9 ปีที่แล้ว +4

    if next time you make a tutorial with voice then will be great...hahahha

  • @anirudhmangalvedhekar2015
    @anirudhmangalvedhekar2015 9 ปีที่แล้ว +2

    Always better to use isset() when dealing with $_POST or any other superglobal variables.....

  • @kenstrailventurek-tv7875
    @kenstrailventurek-tv7875 7 ปีที่แล้ว

    EVERYTIME I SEARCH "localhost/test/login/index.php" what is the problem?
    RESULT:
    Object not found!
    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
    If you think this is a server error, please contact the webmaster.
    Error 404
    localhost
    Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/7.1.7

  • @kuyukimitsu
    @kuyukimitsu 9 ปีที่แล้ว

    I have a minor problem when running the codes. It shows "Please enter a username and password!" immediately when running it. How can I fix this? Thanks in advance. :)

  • @managerzonext6302
    @managerzonext6302 6 ปีที่แล้ว

    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\prova\login.php:10 Stack trace: #0 {main} thrown in C:\xampp\htdocs\prova\login.php on line 10

  • @SadathKhandesignprnt
    @SadathKhandesignprnt 10 ปีที่แล้ว

    Hi Giannis, I am getting this error. please help me out. Notice: Use of undefined constant password - assumed 'password' in C:\xampp\htdocs\designprint\login.php on line 8
    Notice: Undefined variable: nurows in C:\xampp\htdocs\designprint\login.php on line 19
    Notice: Undefined variable: row in C:\xampp\htdocs\designprint\login.php on line 24
    Notice: Undefined variable: row in C:\xampp\htdocs\designprint\login.php on line 25
    Your password is incorrect!

  • @klentgarymalig-on4825
    @klentgarymalig-on4825 10 ปีที่แล้ว

    sir i got an error
    Notice: Undefined index: username in C:\xampp\htdocs\klent\login.php on line 21
    Notice: Undefined index: password in C:\xampp\htdocs\klent\login.php on line 22
    Your password is incorrect!
    the code in line 21 and 22 is
    $dbusername = $row['username'];
    $dbpassword = $row['password'];
    how to get rid of it on that error sir?

  • @vbfr33k
    @vbfr33k 11 ปีที่แล้ว

    Thank you soo much =) but now you should make a video on how to check all password and username about they exists so people not can write /userloggedIn/index.html and be signed in =)

  • @thegreatken2073
    @thegreatken2073 8 ปีที่แล้ว

    Parse error: syntax error, unexpected '$numrows' (T_VARIABLE) in C:\xampp\htdocs\Koblox\Login.php on line 10 please help

  • @1123queenie
    @1123queenie 7 ปีที่แล้ว

    Notice: Undefined index: root in D:\xampp\htdocs\test\login.php on line 24
    Notice: Undefined index: in D:\xampp\htdocs\test\login.php on line 25
    Please enter a username and a password !
    I think, the code wasn't able to connect on my database. Help please

  • @oneclicklearn8675
    @oneclicklearn8675 7 ปีที่แล้ว

    WARNING: This code is highly INSECURE, not strongly encrypting data. This can result in your website being hacked, etc.

  • @manowarhossain2396
    @manowarhossain2396 8 ปีที่แล้ว +1

    please make registration system tutorials for us your explanation is very good there will bhe a great help for me if i have all tutorials about login and registration system. thanks

  • @Ryyza7
    @Ryyza7 9 ปีที่แล้ว

    need help here.. after i log in, this message come out.
    Object not found!
    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
    If you think this is a server error, please contact the webmaster.
    Thanks.

  • @ROWDYLLL3
    @ROWDYLLL3 8 ปีที่แล้ว

    mysql is depreciated it will not work! try mysqli and/or pdo for your extentions!

  • @eosforfly
    @eosforfly 8 ปีที่แล้ว

    mysql_connect i give me an erro but mysqli_connect is works ;)

  • @rajenderlalanivyasonkachow5927
    @rajenderlalanivyasonkachow5927 8 ปีที่แล้ว

    i want on submit action file different for admin & user. pls suggest how i can use two action file in one form.

  • @imageblogger2142
    @imageblogger2142 8 ปีที่แล้ว

    pl.ease
    no voice over?
    what a drag
    sorry, but I just hate that you couldn't be bothered to talk
    couldn't sub or fave

  • @TheMadminecraftman
    @TheMadminecraftman 11 ปีที่แล้ว

    do you need a register and login system and when do you need it?
    is the site big?
    is it going to store many users?

  • @cjlastindex5243
    @cjlastindex5243 9 ปีที่แล้ว

    when login with either correct or wrong username/password,
    it only show last line of if else statement which is
    "Please enter a user name and password"

  • @ToastyGamerGuy
    @ToastyGamerGuy 8 ปีที่แล้ว

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/--/public_html/login.php on line 15
    Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/--/public_html/login.php on line 19
    Your password is incorrect!

  • @АйбатКарашев
    @АйбатКарашев 7 ปีที่แล้ว

    please help
    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\login1\login.php:8 Stack trace: #0 {main} thrown in C:\xampp\htdocs\login1\login.php on line 8
    $connect = mysql_connect("localhost", "root", "") or die("Couldn't connect!!");

    • @nicochen2230
      @nicochen2230 7 ปีที่แล้ว

      you can try mysqli_connect()

  • @dc-javed590
    @dc-javed590 7 ปีที่แล้ว

    yaaaaar last ka step saMJH ME NHI AAYA BCOZ TMNE BOLA KI LETS CREATE A (HTM) FILE. YAHI SE MAIN CONFUSE HO GAYA

  • @taibarani2094
    @taibarani2094 8 ปีที่แล้ว

    If I enter wrong password It says " the user doesn't exists" ..
    Please tell me the solution to this problem??

  • @agungpratama8776
    @agungpratama8776 6 ปีที่แล้ว

    www.atmaluhur.ac.id
    cara bikin tulisan bergerak di website gimna ya

  • @sunithafrancis7091
    @sunithafrancis7091 9 ปีที่แล้ว

    Hello Giannis could you share the code plz

  • @MuhammadIqbal-zy4hs
    @MuhammadIqbal-zy4hs 8 ปีที่แล้ว

    If I enter wrong password It says " the user doesn't exists" .. any solution??

  • @maryrosecuario1757
    @maryrosecuario1757 9 ปีที่แล้ว

    why when i try it it says
    ( ! ) Parse error: syntax error, unexpected '$username' (T_VARIABLE) in C:\wamp\www\login2.php on line 5

    • @Tarmo320
      @Tarmo320 8 ปีที่แล้ว

      +mary rose cuario same here

  • @nakamaph5163
    @nakamaph5163 9 ปีที่แล้ว

    it works but the sad part is i dont know how it works btw thank you

  • @RADSPRODUCTIONS
    @RADSPRODUCTIONS 8 ปีที่แล้ว

    hate when people type the tutorial, is your voice that bad you cant talk? cant use that built in mic ? lols

  • @webslesson
    @webslesson 8 ปีที่แล้ว

    you teach programming in very deep level. I like your teaching skill with this video tutorial.

  • @jamalgaming1649
    @jamalgaming1649 8 ปีที่แล้ว

    Hello , im having this error Please help QUICK !!
    Notice: Undefined index: password in C:\xampp\htdocs\login\logininfo.php on line 5
    Please enter a username and a password !!!

    • @Stre3tus
      @Stre3tus 8 ปีที่แล้ว

      You have to make a variable for example $password = $_POST['password'];. Check variables connected with $_POST.

    • @jamalgaming1649
      @jamalgaming1649 8 ปีที่แล้ว

      +Stre3tus thanks so much i already solved that problem ... But i have another one which is that i do enter a username and a password it tells me Please enter a username and a password ... Can u help me up with this ??

  • @ToastyGamerGuy
    @ToastyGamerGuy 8 ปีที่แล้ว

    Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: NO) in /home/**/public_html/login.php on line 10
    Couldn't Connect to the database!

    • @memegogogo2496
      @memegogogo2496 8 ปีที่แล้ว

      +ToastyGamerGuy same here why is it sir?

    • @ToastyGamerGuy
      @ToastyGamerGuy 8 ปีที่แล้ว

      +meme gogogo - need to set a username n passeprd for your datanase w/ privs

    • @ggc_5655
      @ggc_5655 8 ปีที่แล้ว

      password is root.
      mysqli_connect("localhost", "root", "root", "DataBase");

  • @perfect.stealth
    @perfect.stealth 9 ปีที่แล้ว

    But... i followed the tutorial and re-did it 2 times, i STILL get Undefined variables at username and password (line 5 and 6)

    • @mmosa8911
      @mmosa8911 9 ปีที่แล้ว

      +Suleiman Boutzamat
      correct from the start write down this
      session_start ();
      if(isset($_POST['submit']))
      {
      echo $username = $_POST['username'];
      echo $password = $_POST['password'];
      }
      then
      if ($username&&$password)
      {
      $connect=mysql_connect("localhost", "root", "")or die("Couldn't connect to the database");
      mysql_select_db("login") or die("Couldn't find database");
      $query = mysql_query("SELECT * FROM users WHERE username='$username'");
      $numrows = mysql_num_rows($query);
      if($numrows!==0)
      {
      while($row = mysql_fetch_assoc($query))
      {
      $dbusername = $row['username'];
      $dbpassword = $row['password'];
      }
      if($username==$dbusername&&$password==$dbpassword)
      {
      echo "You are logged in!";
      @$_SESSION ['username'] = $username;
      }
      else
      echo "Your password is incorrect!";
      }
      else
      die("That user doesn't exists!");
      }
      else
      die("Please enter a username and password!");
      its login.php

  •  9 ปีที่แล้ว

    I'm glad you want to help people, but it'sreally annoying when we have to change something later because you made a mistake, so plan better. Also you just remove the md5 instead of filling in your password in the database after encoding it with md5.

  • @younas61805
    @younas61805 7 ปีที่แล้ว +1

    Better to use your sound also .... :(

  • @BrandonPrintiss
    @BrandonPrintiss 8 ปีที่แล้ว

    I keep getting Password Incorrect...

  • @fajriiman1360
    @fajriiman1360 7 ปีที่แล้ว

    is it okay to use wamp instead of xampp? i try using wamp but its error

  • @javatadle
    @javatadle 6 ปีที่แล้ว

    Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\login\login.php:10 Stack trace: #0 {main} thrown in C:\xampp\htdocs\login\login.php on line 10

  • @akshay788100
    @akshay788100 9 ปีที่แล้ว

    Sir?
    i'm having a problem "Parse error: syntax error, unexpected ';' in C:\php\htdocs\test\login\login.php on line 10"
    code line 10 to 11 " $connect = mysql_connect("localhost", "root", "") or die("Couldn't connect to the database!)";
    mysql_select_db("login1") or die("Couldn't find database");"

    • @JasperAKwayu
      @JasperAKwayu 9 ปีที่แล้ว

      Brother Jasper the code should look like this
      $connect=mysql_connect("localhost","root","") or die ("Couldn't Connect to the database");
      mysql_select_db("Registration") or die ("Couldnt find to the databse");
      You just made a booboo with the quotes ....
      Hope that soles the problem

    • @javatadle
      @javatadle 6 ปีที่แล้ว

      not working for me it still the same like that code

  • @gregliako7995
    @gregliako7995 8 ปีที่แล้ว

    Kalispera jianni, theleis na kaneis mia istoselida gia mena?

  • @EmmanuelFletcher21
    @EmmanuelFletcher21 7 ปีที่แล้ว

    Great video very helpful but u have to follow it exactly

  • @jumariish
    @jumariish 11 ปีที่แล้ว

    very good indeed, if the accompanied audio
    thanks

  • @srikanth_srt9816
    @srikanth_srt9816 7 ปีที่แล้ว

    I have followed every step in your video but still getting error as
    Parse error: syntax error, unexpected '$username' (T_VARIABLE), expecting ']' in C:\xampp\htdocs\test\login\login.php on line 13
    can you help me with this

  • @toutoumpas
    @toutoumpas 10 ปีที่แล้ว +1

    hahaha it is 2014 and you still dont sanitaze the input when you pass it to the database, no wonder sql injection still works. WHAT A JOKE!!!!

    • @afterlifedll
      @afterlifedll 9 ปีที่แล้ว

      ***** the problem is there since the invention of databases. Regardless when the video has been created. User inputs HAVE to be escaped to avoid serious damage to the database. Anyone with minimum knowledge of sql injection can wipe the database clean in seconds.
      Alternatively you can use PDO prepared statements ( i believe mysqli has them too, but PDO is better in the long run ) and have no such problems.

    • @toutoumpas
      @toutoumpas 9 ปีที่แล้ว +1

      ***** I did not meant to be harsh, it was nice of you to invest time in recording this video. But I believe that security should come prior to functionality and this is something that developers tend to forget. It is better to be rudely awakened than peacefully sleeping when it comes to security issues

  • @boricksmanibo4931
    @boricksmanibo4931 7 ปีที่แล้ว

    what dud you use for coding/. thanks

  • @Jacob.Pratim
    @Jacob.Pratim 8 ปีที่แล้ว

    cam we get the source code?

  • @pinoyako2607
    @pinoyako2607 8 ปีที่แล้ว

    thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!! i made it

  • @amitkumar-ti3kv
    @amitkumar-ti3kv 8 ปีที่แล้ว

    help me its not working.......................

  • @rajenderlalanivyasonkachow5927
    @rajenderlalanivyasonkachow5927 8 ปีที่แล้ว

    very good information . i want just same code for my site.
    thanks

  • @rupaprajapati2558
    @rupaprajapati2558 8 ปีที่แล้ว

    I am a beginner, doesn't it contain any explanation ?

  • @modestusyashikongo9012
    @modestusyashikongo9012 7 ปีที่แล้ว

    Serious need: Login and registration system

  • @doramilovic7873
    @doramilovic7873 8 ปีที่แล้ว

    hallo brother giannis..thanks for your good videos..i learn a lot of from you..
    i have problem with this now..when i execute the login.php and put name and username i get this message ( Parse error: syntax error, unexpected end of file in /opt/lampp/htdocs/A/login.php on line 32).help me please thanks

  • @TommiSvaerd
    @TommiSvaerd 8 ปีที่แล้ว

    Awesome video man really helpful! In the thumbnail of the video it says "LOGIN & REGISTRATION system" In a white text, could you tell me what that font is? I've been searching for it everywhere but couldnt find it. Maybe a strange question but i must know!!

  • @afolabioluwaseun9293
    @afolabioluwaseun9293 9 ปีที่แล้ว

    Pls put me through on how to download the video

  • @TirthJainTeeJay
    @TirthJainTeeJay 10 ปีที่แล้ว

    can you give the whole code for download

  • @adamharris9263
    @adamharris9263 8 ปีที่แล้ว

    how do you change from a server to a local host

  • @siddeshrevankar7808
    @siddeshrevankar7808 8 ปีที่แล้ว

    bro i am getting error in this line
    $dbusername = $row('username');
    $dbpassword = $row('password');
    Whats the problem and i am using wamp

    • @siddeshrevankar7808
      @siddeshrevankar7808 8 ปีที่แล้ว +1

      +Samuel Graham thank u

    • @Tomthemadone
      @Tomthemadone 8 ปีที่แล้ว

      +Samuel Graham if you have time to tell me whats wrong with my code, im getting this after pressing log in.
      Parse error: syntax error, unexpected '$numrows' (T_VARIABLE) in C:\Tiedostot\xampp\htdocs\koelogin\login.php on line 15
      this is my code around that area:
      13 $query = mysqli_query("SELECT * FROM users WHERE username='$username'")
      14
      15 $numrows = mysqli_num_rows($query);
      16
      17 if($numrows!==0)

  • @sneakersquared
    @sneakersquared 10 ปีที่แล้ว

    TY

  • @aliefaditya9098
    @aliefaditya9098 7 ปีที่แล้ว

    Thanks, it's awesome!

  • @projectbased
    @projectbased 9 ปีที่แล้ว +1

    Thanks for tutorial. I did the same but don't figure it out whenever i click on the submit button it shows me the whole contents of the login.php file and does not do anything. need help

  • @beautifulsteph486
    @beautifulsteph486 9 ปีที่แล้ว

    Thank you so much, You have saved my life. I've been looking all over trying to figure out how to do this login page and I came across a lot but I was so confused, but this tutorial has really helped me thank you so much.

  • @SunilSharmaZone
    @SunilSharmaZone 8 ปีที่แล้ว

    why we have to put @ infront of session

  • @shoelaysxoxo8130
    @shoelaysxoxo8130 8 ปีที่แล้ว

    it is working thanks so much! :)

  • @JusTNostalgia_MusiC
    @JusTNostalgia_MusiC 11 ปีที่แล้ว

    This is great tutorial ..........

  • @doramilovic7873
    @doramilovic7873 8 ปีที่แล้ว

    make please a video to explain us how we can use xampp and execute php and html with xamp..you explain very good really.

  • @ZsolTuber
    @ZsolTuber 10 ปีที่แล้ว

    At 6:17!
    Where is mysql_real_escape_string at line 5 and 6? :@

  • @srihari2u
    @srihari2u 10 ปีที่แล้ว

    thanks its working . . . .

  • @ankanchakraborty9229
    @ankanchakraborty9229 9 ปีที่แล้ว

    Awsm! it works fine....

  • @joshith99
    @joshith99 8 ปีที่แล้ว

    which version was used

  • @muditgupta9982
    @muditgupta9982 7 ปีที่แล้ว

    Source Code Plzz...!!!

  • @TheKobeyaoming01
    @TheKobeyaoming01 9 ปีที่แล้ว

    thank you very much for doing this...i learn a lot..and the style your writng the system is suit me.thanks a lot

  • @TheMadminecraftman
    @TheMadminecraftman 11 ปีที่แล้ว

    what id of a site do you need

  • @markfantone1253
    @markfantone1253 9 ปีที่แล้ว

    Thank you it works

  • @jamesoduro1452
    @jamesoduro1452 9 ปีที่แล้ว

    thanks you man please I need your tutorial for Registration. where can I find it?

  • @jaymann7723
    @jaymann7723 10 ปีที่แล้ว

    Hmm.. Did not work..

  • @mohamedtlb6793
    @mohamedtlb6793 7 ปีที่แล้ว

    Thanks for tuto .

  • @caesarkhamisi
    @caesarkhamisi 8 ปีที่แล้ว

    nice work brother

  • @sajinthomas7175
    @sajinthomas7175 7 ปีที่แล้ว

    Thank you so much

  • @gatkouthnyuel7597
    @gatkouthnyuel7597 8 ปีที่แล้ว

    woooow beautiful one, its very
    impressive can you send for me this code?

  • @hollowman_1991
    @hollowman_1991 9 ปีที่แล้ว

    Great example!

  • @mohammadjokhadar4638
    @mohammadjokhadar4638 7 ปีที่แล้ว

    couldnt connect to database, whats the problem?

    • @santosdos8082
      @santosdos8082 7 ปีที่แล้ว

      I had the same thing
      my fix :
      //$connect = mysql_connect("localhost","User","Password") of my mamp local server
      $connect = mysql_connect("localhost","root","root") because my localhost does have a default password.

  • @GamePILayer
    @GamePILayer 10 ปีที่แล้ว

    Can you give me the login.php file? :D

    • @BaSs_HaXoR
      @BaSs_HaXoR 10 ปีที่แล้ว +3

      Its a tutorial. If he/she gave the .php file, it would prevent a lot of people from trying/learning. ;)

  • @PawanSharma-eh8oh
    @PawanSharma-eh8oh 9 ปีที่แล้ว

    very helpfull

  • @excaliberx2009
    @excaliberx2009 7 ปีที่แล้ว

    why no audio ?

  • @navjotsinghvirk7449
    @navjotsinghvirk7449 8 ปีที่แล้ว

    great video

  • @nareshchoudhary1402
    @nareshchoudhary1402 8 ปีที่แล้ว

    thanks sir ji

  • @MrMatthewn7
    @MrMatthewn7 11 ปีที่แล้ว

    Ahahaha %69

  • @doramilovic7873
    @doramilovic7873 8 ปีที่แล้ว

    help me please

  • @theb0ss762
    @theb0ss762 8 ปีที่แล้ว

    Mine keep on saying password incorrect what can i do
    Thanks

  • @PAKIZFOLYFE786
    @PAKIZFOLYFE786 11 ปีที่แล้ว

    Sublime Text

  • @linanasri6349
    @linanasri6349 8 ปีที่แล้ว

    thanks

  • @AdrijaPurkaitad
    @AdrijaPurkaitad 9 ปีที่แล้ว

    it's really helpful...thanku :)

  • @mrsan333
    @mrsan333 9 ปีที่แล้ว

    good

  • @yaredtekalign4211
    @yaredtekalign4211 7 ปีที่แล้ว

    wow

  • @jinjhietotanes7783
    @jinjhietotanes7783 9 ปีที่แล้ว

    PHP Full Login System

  • @bensosfrequents
    @bensosfrequents 10 ปีที่แล้ว

    This is great

  • @altaeerasool5757
    @altaeerasool5757 8 ปีที่แล้ว

    thank you beautiful work

  • @iansanpedro6593
    @iansanpedro6593 8 ปีที่แล้ว

    nc :D

  • @YOYO1729
    @YOYO1729 10 ปีที่แล้ว

    Hello! I am still getting password error even when I enter the correct password

    • @YOYO1729
      @YOYO1729 10 ปีที่แล้ว

      ***** hello how can I contact you. I have more doubts.

    • @YOYO1729
      @YOYO1729 10 ปีที่แล้ว

      ***** Got the Solution Thanks for the video

    • @YOYO1729
      @YOYO1729 10 ปีที่แล้ว

      ***** can u tell how to upload an image in the tables of database and not server or some directory using php script??????

    • @YOYO1729
      @YOYO1729 10 ปีที่แล้ว

      ***** Hi I am using PHP and Mysql and have created two tables. 1. User 2. Photos. I need to make a link between the two tables where they will have a common column of Username and I want the photo to be uploaded and stored in the column of the table Photos. I have seen ur video of profile pictures. But my requirement is that the user will login and will be directed to saving as many picture as he wants and the image should be stored in the Photos tables and he should also be able to search all the saved images. Do you have any idea how to do it???

  • @09821354343
    @09821354343 11 ปีที่แล้ว

    which software you are using.It's rely nice ..