PHP Full Login System

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 148

  • @webslesson
    @webslesson 8 років тому

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

  • @TheKobeyaoming01
    @TheKobeyaoming01 10 років тому

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

  • @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!!

  • @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. :)

  • @anirudhmangalvedhekar2015
    @anirudhmangalvedhekar2015 10 років тому +2

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

  • @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"

  • @EmmanuelFletcher21
    @EmmanuelFletcher21 7 років тому

    Great video very helpful but u have to follow it exactly

  • @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.

  • @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!

  • @shoelaysxoxo8130
    @shoelaysxoxo8130 8 років тому

    it is working thanks so much! :)

  • @gregliako7995
    @gregliako7995 8 років тому

    Kalispera jianni, theleis na kaneis mia istoselida gia mena?

  • @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!

  • @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.

  •  10 років тому

    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.

  • @caesarkhamisi
    @caesarkhamisi 8 років тому

    nice work brother

  • @thegreatken2073
    @thegreatken2073 8 років тому

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

  • @rajenderlalanivyasonkachow5927
    @rajenderlalanivyasonkachow5927 9 років тому

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

  • @ROWDYLLL3
    @ROWDYLLL3 8 років тому

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

  • @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

  • @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?

  • @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

  • @aliefaditya9098
    @aliefaditya9098 8 років тому

    Thanks, it's awesome!

  • @altaeerasool5757
    @altaeerasool5757 8 років тому

    thank you beautiful work

  • @taibarani2094
    @taibarani2094 8 років тому

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

  • @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

  • @fajriiman1360
    @fajriiman1360 7 років тому

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

  • @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?

  • @hollowman_1991
    @hollowman_1991 9 років тому

    Great example!

  • @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

  • @ZsolTuber
    @ZsolTuber 10 років тому

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

  • @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

  • @SunilSharmaZone
    @SunilSharmaZone 8 років тому

    why we have to put @ infront of session

  • @boricksmanibo4931
    @boricksmanibo4931 7 років тому

    what dud you use for coding/. thanks

  • @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

  • @adamharris9263
    @adamharris9263 8 років тому

    how do you change from a server to a local host

  • @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

  • @rupaprajapati2558
    @rupaprajapati2558 8 років тому

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

  • @markfantone1253
    @markfantone1253 9 років тому

    Thank you it works

  • @AdrijaPurkaitad
    @AdrijaPurkaitad 9 років тому

    it's really helpful...thanku :)

  • @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

  • @jumariish
    @jumariish 11 років тому

    very good indeed, if the accompanied audio
    thanks

  • @oneclicklearn8675
    @oneclicklearn8675 7 років тому

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

  • @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.

  • @sajinthomas7175
    @sajinthomas7175 7 років тому

    Thank you so much

  • @joshith99
    @joshith99 8 років тому

    which version was used

  • @ankanchakraborty9229
    @ankanchakraborty9229 9 років тому

    Awsm! it works fine....

  • @navjotsinghvirk7449
    @navjotsinghvirk7449 9 років тому

    great video

  • @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)

  • @nakamaph5163
    @nakamaph5163 9 років тому

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

  • @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.

  • @afolabioluwaseun9293
    @afolabioluwaseun9293 10 років тому

    Pls put me through on how to download the video

  • @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");

  • @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

  • @АйбатКарашев
    @АйбатКарашев 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()

  • @bensosfrequents
    @bensosfrequents 10 років тому

    This is great

  • @jamesoduro1452
    @jamesoduro1452 9 років тому

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

  • @TheKobeyaoming01
    @TheKobeyaoming01 10 років тому +4

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

  • @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

  • @theb0ss762
    @theb0ss762 8 років тому

    Mine keep on saying password incorrect what can i do
    Thanks

  • @JusTNostalgia_MusiC
    @JusTNostalgia_MusiC 11 років тому

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

  • @modestusyashikongo9012
    @modestusyashikongo9012 7 років тому

    Serious need: Login and registration system

  • @amitkumar-ti3kv
    @amitkumar-ti3kv 8 років тому

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

  • @sunithafrancis7091
    @sunithafrancis7091 9 років тому

    Hello Giannis could you share the code plz

  • @excaliberx2009
    @excaliberx2009 7 років тому

    why no audio ?

  • @linanasri6349
    @linanasri6349 8 років тому

    thanks

  • @Jacob.Pratim
    @Jacob.Pratim 8 років тому

    cam we get the source code?

  • @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 ??

  • @mohamedtlb6793
    @mohamedtlb6793 7 років тому

    Thanks for tuto .

  • @nareshchoudhary1402
    @nareshchoudhary1402 8 років тому

    thanks sir ji

  • @TirthJainTeeJay
    @TirthJainTeeJay 10 років тому

    can you give the whole code for download

  • @TheMadminecraftman
    @TheMadminecraftman 11 років тому

    what id of a site do you need

  • @BrandonPrintiss
    @BrandonPrintiss 8 років тому

    I keep getting Password Incorrect...

  • @PawanSharma-eh8oh
    @PawanSharma-eh8oh 9 років тому

    very helpfull

  • @pinoyako2607
    @pinoyako2607 8 років тому

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

  • @younas61805
    @younas61805 7 років тому +1

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

  • @srihari2u
    @srihari2u 10 років тому

    thanks its working . . . .

  • @rajenderlalanivyasonkachow5927
    @rajenderlalanivyasonkachow5927 9 років тому

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

  • @sneakersquared
    @sneakersquared 10 років тому

    TY

  • @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

  • @mrsan333
    @mrsan333 9 років тому

    good

  • @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???

  • @jaymann7723
    @jaymann7723 10 років тому

    Hmm.. Did not work..

  • @PAKIZFOLYFE786
    @PAKIZFOLYFE786 11 років тому

    Sublime Text

  • @jinjhietotanes7783
    @jinjhietotanes7783 9 років тому

    PHP Full Login System

  • @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 =)

  • @muditgupta9982
    @muditgupta9982 7 років тому

    Source Code Plzz...!!!

  • @gatkouthnyuel7597
    @gatkouthnyuel7597 8 років тому

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

  • @eosforfly
    @eosforfly 8 років тому

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

  • @agungpratama8776
    @agungpratama8776 6 років тому

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

  • @yaredtekalign4211
    @yaredtekalign4211 7 років тому

    wow

  • @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. ;)

  • @iansanpedro6593
    @iansanpedro6593 8 років тому

    nc :D

  • @RADSPRODUCTIONS
    @RADSPRODUCTIONS 8 років тому

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

  • @doramilovic7873
    @doramilovic7873 8 років тому

    help me please

  • @MrMatthewn7
    @MrMatthewn7 11 років тому

    Ahahaha %69

  • @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

  • @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