Login system using PHP with MYSQL database

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ย. 2024
  • 🚀Download Complete blog Source Code for only $2: awamelvine.gum...
    ✨ Get notified when I release my upcoming premium course: codingpoets.com/
    In this login video, I create a users table with fields id, username, and password. Then I inserted a user whose credentials I used to log in.
    UPDATE: User registration with email verification on localhost: goo.gl/nRADcM
    Check out my other videos:
    Learn how to build a complete blog with PHP and MySQL: goo.gl/Ru41Tw
    Tips for Junior developers: • Practical tips for Jun...

ความคิดเห็น • 1.2K

  • @AwaMelvine
    @AwaMelvine  5 ปีที่แล้ว +60

    💥🚀Download Complete blog Source Code for only $2: awamelvine.gumroad.com/l/blog-source-code

    • @BINGOHINDI
      @BINGOHINDI 5 ปีที่แล้ว +4

      can I use this for android studio

    • @mirekf89
      @mirekf89 5 ปีที่แล้ว

      Hi Awa. Checkout my tool Filly - it will make your coding & lessons even better: fill.ly

    • @patricklevionnois536
      @patricklevionnois536 3 ปีที่แล้ว

      we can use www.pl61.fr to learn 2020

    • @webtutorial4817
      @webtutorial4817 3 ปีที่แล้ว +1

      th-cam.com/video/d1PdlScCVOo/w-d-xo.html

  • @alexandrecamargoandreoli7669
    @alexandrecamargoandreoli7669 3 ปีที่แล้ว +23

    I learned more in 20 min with no chat than those 1hrs vid with guys talking a lot.... THANK YOUUU

  • @difanaufalpratama8765
    @difanaufalpratama8765 4 ปีที่แล้ว +68

    I really like his voice. It's so calm

    • @普拉达
      @普拉达 4 ปีที่แล้ว +2

      I could not hear anything, issue with the video

    • @普拉达
      @普拉达 4 ปีที่แล้ว +1

      @Just Sliqq hello I can not hear anything issue with the video, any fix?

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

      @@普拉达 Try refresh it, or connect to the bigger speaker in the basement. Special voice need special treatment

    • @普拉达
      @普拉达 4 ปีที่แล้ว +1

      @@difanaufalpratama8765 hello I don't think this video has a sound I can hear on the other videos, thanks for the reply

    • @difanaufalpratama8765
      @difanaufalpratama8765 4 ปีที่แล้ว +2

      @@普拉达 oh wait so you are being serious? I thought you joking too. This video really dont have sound sir

  • @getanewwebsite863
    @getanewwebsite863 7 ปีที่แล้ว +72

    'Screams internally' -me as a professional front end dev watching a back-end developer create html/css.
    Just kidding, thank you for taking the time to make this video, it's been helpful.

    • @zariaa3794
      @zariaa3794 4 ปีที่แล้ว

      Bro, my code don't work, could you help me...
      Here is my code :
      Login


      Username:


      Password:

    • @msh_dev
      @msh_dev 4 ปีที่แล้ว

      @@zariaa3794 First its
      not
      there is no body tag in your code how will hit work??
      it should be like
      Login


      Username:


      Password:

    • @exogendesign4582
      @exogendesign4582 4 ปีที่แล้ว

      @@zariaa3794 You should spend some more time in Html First, I was there, travers video are pretty good you can learn from it.

    • @acos21
      @acos21 4 ปีที่แล้ว +1

      Im a backend developer and see no problem with this man's html/css. lol.

    • @exogendesign4582
      @exogendesign4582 4 ปีที่แล้ว

      @@acos21 then you're a shitty back end dev then

  • @deanbell1969
    @deanbell1969 7 ปีที่แล้ว +16

    Great instructional video!!
    It took me some time to tweak the code to suit my existing database. This initially gave me a result of "Failed to query database No database selected" until I worked out that I needed to change "login" in Row 14 of process.php to my own database name.
    As a starter in mysql and php, some voice-over would be helpful in explaining such things.

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

      my database name is "login" although its giving me the same"Failed to query database No database selected"

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

      Meenakshi Panyam maby the database isnt a localhost of urs?

  • @kingjamdonut3469
    @kingjamdonut3469 2 ปีที่แล้ว +3

    didn't work :/, got an error on line 9 of process.php regarding the mysql_real_escape_string. Anyone know what to do?

  • @Killersponge87
    @Killersponge87 5 ปีที่แล้ว +4

    This login is easy to bypass. If a empty post-body is sent, then it won't find a row in the database. This let $row['username'] be undefined, like $_POST['username'], too. So you're able to login with an empty post-request. There is also no reason for comparing the post with the databse result, because if the user / password - combination is invalid, then the database will find no row and the function mysql_num_rows() returns 0. Then some thinkings. It's a real good option to use PDO. Because the c-style mysql api is deprecaded and was removed in php 7. With PDO it's possible to use prepared statements for re-using queries and for letting the database escape the user input.

  • @kennchan2281
    @kennchan2281 2 ปีที่แล้ว

    most of the videos skip the process of creating cd: but after I hve watched this I understood one basic function that I had stuck for days great one

  • @educatepurpose2720
    @educatepurpose2720 3 ปีที่แล้ว +8

    Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\New folder\htdocs\process.php:10 Stack trace: #0 {main} thrown in C:\xampp\New folder\htdocs\process.php on line 10 how to solve this error

    • @kanielov100
      @kanielov100 3 ปีที่แล้ว

      I also see this information. How to solve it?

    • @erenisgoren6066
      @erenisgoren6066 2 ปีที่แล้ว

      me to

  • @sh44ko58
    @sh44ko58 3 ปีที่แล้ว +1

    What should i do here ?
    Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\App\process.php:8 Stack trace: #0 {main} thrown in C:\xampp\htdocs\App\process.php on line 8

  • @dejanandric7337
    @dejanandric7337 7 ปีที่แล้ว +18

    nice, but there is one very important issue. if you do not place any value and hit login button, the message is still 'Login successful!'. There is missing logic in php for this event.
    Therefore:
    $row = mysql_fetch_array($result);
    if ($row["username"] == $username && $row["password"] == $password *_&& ("" !== $username || "" !== $password)_*) {
    echo "Login successful! Welcome " . $row["username"];
    } else {
    echo "Failed to login!";
    }
    _===_ means *identical*, _!==_ means *not identical*

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

      Thanks!

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

      fixed by isset() and !empty() functions

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

      yup you are correct man they have not done the proper validation.

    • @gamer-z6431
      @gamer-z6431 7 ปีที่แล้ว

      Just add "required" in html input tags

    • @abidbaig4771
      @abidbaig4771 6 ปีที่แล้ว +1

      kindly past below code. I have check its working fine
      if($_POST['username']=='' && $_POST['password']==''){
      echo "Please fill all the details";
      }
      else if($rows['username']==$username && $rows['password']==$password){
      echo " login successfully ".$rows['username'];
      }
      else
      {
      echo "incorrect password";
      }
      ?>

  • @Theppo101
    @Theppo101 4 ปีที่แล้ว +2

    I'm not quite sure as I'm not primarily working with PHP in my free time, but isn't it absolutely unnecessary to state
    if ($row['username'] == $username && $row['password'] == $password) {
    //Print
    }
    As this was already defined with your SQL query.
    The SQL query will be empty unless both the username and the password match, because only cases where both match on the same row are going to be fetched.
    As such, instead of running a redundant check, you can just go ahead and use
    if(!empty($row['username'])) {
    echo "Login successful";
    } else {
    echo "Login failed";
    }
    Or alternatively
    if($result->num_rows != 0) {
    echo "Login successful";
    } else {
    echo "Login failed";
    }
    This is a rather minor thing, but I think it's good to note there's no reason to explicitly state that.
    Instead of checking for two variables, you can just check whether there is no data.
    As for the people struggling with mysql_real_escape_string, I would suggest trying out
    $password = mysqli_real_escape_string($conn, $password); //Conn being the connection variable established before
    As I'm not sure if the issue lies with mysql being deprecated.
    For simple syntax issues, it might be best to read what the error message says and you'll get far.
    The line where it points at will give you a lot of clues as to how to solve these issues, then it's just fixing whatever small issue there was, such as a misplaced bracket or forgetting to close a string.

  • @anriantorres2228
    @anriantorres2228 5 ปีที่แล้ว +11

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

    • @sumanclick2979
      @sumanclick2979 5 ปีที่แล้ว +2

      Ya, I have same Issue. My is :
      Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\login\process.php:8 Stack trace: #0 {main} thrown in C:\xampp\htdocs\login\process.php on line 8.

    • @ehhniko
      @ehhniko 4 ปีที่แล้ว

      @@sumanclick2979 Yep same

    • @yauko_
      @yauko_ 4 ปีที่แล้ว

      @@ehhniko did you found a solution?

    • @ehhniko
      @ehhniko 4 ปีที่แล้ว

      Salaam There is not actually. Old syntax used in the video, not compatible with the new versions.

    • @theresaway4075
      @theresaway4075 4 ปีที่แล้ว +1

      In new version php, now we use mysqli, not mysql again...
      $dbname = mysqli_connect("localhost", "root", "", your-database_name");
      $username = mysqli_real-escape_string($dbname, $_POST['username']);

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

    Thank you! You exactly showed what I've been looking for after hours of searching! I went to almost every forum there is and no one even tried to explain this exact, "$result"-"$row" technique and the comparison from database to php-variables, to me. Very nice. You deserve a thumbs up ^^

  • @steffdulos4055
    @steffdulos4055 8 ปีที่แล้ว +13

    this tutorial just helped me a lot with my homework!

  • @espdasobrevivencia
    @espdasobrevivencia 2 ปีที่แล้ว

    Thanks my friend. Great video. I'm from Brazil. Your video help me. My english is not so good, but I can understand your video.

  • @joseluis7118
    @joseluis7118 5 ปีที่แล้ว +13

    Dont be shy buddy! Nothing can be worse than a tutorial without voice!

    • @AwaMelvine
      @AwaMelvine  5 ปีที่แล้ว +5

      Hahaha I've grown out of my shyness. My recent videos now have voice.
      Thanks by the way

    • @hajji384
      @hajji384 3 ปีที่แล้ว

      @@AwaMelvine Awa you're best my friend .

  • @dukethotness
    @dukethotness 7 ปีที่แล้ว +110

    This is one of the most depressing but productive video i have seen

    • @anayamagar7934
      @anayamagar7934 5 ปีที่แล้ว +4

      he should have used the voice

    • @Isaac.D.grizzly
      @Isaac.D.grizzly 5 ปีที่แล้ว +1

      This this video make you the depressed child that you are now?

    • @georgemccoy701
      @georgemccoy701 3 ปีที่แล้ว

      #Rondytech on iG just got my ps4 account back in less than no time, I appreciate her good works 🙌🙌🙌🙌

  • @emathematics3412
    @emathematics3412 4 ปีที่แล้ว +1

    plz help me..i got this error massage.what can i do..plz reply..
    .Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\login\process.php:9 Stack trace: #0 {main} thrown in C:\xampp\htdocs\login\process.php on line 9

    • @aswinsthyanarayanan7618
      @aswinsthyanarayanan7618 4 ปีที่แล้ว

      use "mysqli_real_escape_string()" instead of "mysql_real_escape_string()" or reduce the php version

  • @faheemniyas1527
    @faheemniyas1527 3 ปีที่แล้ว +4

    iam facing an issue amd it shows 'uncaught error: Call to undefined functions mysql_real_escape_string($username);'
    i checked each and every code but still facing a that issue

    • @mohamedhassani160
      @mohamedhassani160 3 ปีที่แล้ว +1

      same... and idk why

    • @nelsonawuja9979
      @nelsonawuja9979 3 ปีที่แล้ว

      @@mohamedhassani160 mysql stopped being used for php greater than 7 so you need to use mysqli syntax

  • @nareshkanigiri4639
    @nareshkanigiri4639 4 ปีที่แล้ว +1

    You have to implement a function named stringCheck. The value of the variable input is a string BIYPR2978H. The string must have ten letters. When stringCheck is called, need to check 4th letter is P, 6 to 9 should be Number and last letter should be an alphabet. If any condition is false, you can print the error message. How would you implement this function?

  • @youdeep
    @youdeep 3 ปีที่แล้ว +14

    I was searching for the movie "A Quiet Place 2". And then I found this.

  • @bobykumar3960
    @bobykumar3960 3 ปีที่แล้ว

    without saying a word... taught a great lesson...

    • @webtutorial4817
      @webtutorial4817 3 ปีที่แล้ว

      th-cam.com/video/d1PdlScCVOo/w-d-xo.html

  • @silviacarrozzo9046
    @silviacarrozzo9046 7 ปีที่แล้ว +3

    Thanks to the author of this tutorial: I couldn't with other tutorials using mysql_num_rows.....and stuff.
    :)

  • @u_DiND
    @u_DiND 3 ปีที่แล้ว +2

    i have some problem it says
    Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in D:\XAMPP\htdocs\parkiran\pro_login.php:9 Stack trace: #0 {main} thrown in D:\XAMPP\htdocs\parkiran\pro_login.php on line 9
    i've been searchingon forum they said that mysql_real_escape_string() function was deprecated since php 5.5 do you have any solution?

  • @clickadelic7681
    @clickadelic7681 7 ปีที่แล้ว +14

    it's old PHP Syntax "mysql " is deprecated.

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

      that is not true. MySQL is still updated as of today, but it got aquired by Oracle.

    • @Orincaby
      @Orincaby 4 ปีที่แล้ว

      @@Kasrasfriedchicken soreplac all instances of mysql with stupidoraclething

    • @Kasrasfriedchicken
      @Kasrasfriedchicken 4 ปีที่แล้ว

      @@Orincaby idk man what this even was, it's two years old. I was trying to be smart even when I have no SQL knowledge. Forget about this statement

    • @Orincaby
      @Orincaby 4 ปีที่แล้ว

      @@Kasrasfriedchicken me neither

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

    I d like to ask why you made two rows of code per html, php sql escape rather than just writing the code once. I am a newbie and am wondering why the extra steps. To me it seems like you connected to the site first, the sql procedures second and 3rd the db connection. $useto = mysqli_real_escape_string($db, $_POST['useto']; Thanks in advanced!

  • @Sn11p33r
    @Sn11p33r 8 ปีที่แล้ว +18

    Sorry to say, but its so unfinished and not safe at all.
    1. If the POST is empty the user is still able to log in although this can be solved with "if($_POST == null)"
    2. The password isnt salted/hashed, which means if someone logs in on the databse it will be pretty insecure

    • @Sn11p33r
      @Sn11p33r 8 ปีที่แล้ว +2

      +Direct Gaming To check if post is set:
      if(isset($_POST["name of input"])){
      Do the stuff here;
      }
      To encrypt/hash:
      hash: $password = md5($password);
      encrypt: $password = crypt($password);
      and then use the MySQL Query, but the password has to be stored in the database as a hash/encryption.

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

      +Direct Gaming imgur.com/a/JLsIv < I made these two screenshots of my code with as much documentation as possible, if you have any other questions. Ask me on skype: itzthesimon

    • @AwaMelvine
      @AwaMelvine  8 ปีที่แล้ว +4

      +Sn11p33r Thanks for your feedback. I'll make a better version soon

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

      I made a better version of this video. Here, check it out: th-cam.com/video/lGYixKGiY7Y/w-d-xo.html and thanks for watching!

    • @indiandjremixclub8667
      @indiandjremixclub8667 5 ปีที่แล้ว

      Can you help me !!

  • @engineersguild8889
    @engineersguild8889 3 ปีที่แล้ว +1

    Why Welcome message is displaying when there are errors in the process.php file? Why ELSE statement not working?

  • @marlonmollaneda5956
    @marlonmollaneda5956 3 ปีที่แล้ว +4

    Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\login\process.php:7 Stack trace: #0 {main} thrown in C:\xampp\htdocs\login\process.php on line 7

    • @user-vt1pv6ci1i
      @user-vt1pv6ci1i 2 ปีที่แล้ว

      I have the same error. Did you find a solution?

    • @user5812
      @user5812 2 ปีที่แล้ว

      @@user-vt1pv6ci1i Try mysqli_real_escape_string() instead

  • @hajji384
    @hajji384 3 ปีที่แล้ว

    Amazing Awa , lots I learned from ur tutorials best teacher style. I 😘 it

  • @NoshadAli19
    @NoshadAli19 7 ปีที่แล้ว +3

    Hey
    Are the names correct you are using in $POST[' ']; statement."
    as you have used user for $username and pass for $password in the form.
    Please check and reply soon.
    Thanks

    • @pradeepkoundinya5094
      @pradeepkoundinya5094 3 ปีที่แล้ว

      Yaa bro it’s not correct I stucked there almost 40 min

  • @kirk-patrickbrown866
    @kirk-patrickbrown866 6 ปีที่แล้ว +1

    Great tutorial, however just to point out. It was actually the name attribute that is used, rather than the id in $Post[' ']; that caused the undefined index notice in your script.Very helpful though giving you a thumbs up.

  • @vinbatara7872
    @vinbatara7872 8 ปีที่แล้ว +5

    i got error, pls help thanks.
    Fatal error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\login\process.php on line 9

    • @aarushsharma5966
      @aarushsharma5966 5 ปีที่แล้ว +2

      you can change the mysql to mysqli in all the functions. cause newer versions of PHP doesn't actually supports the mysql function.

    • @kirankumar-kz4kc
      @kirankumar-kz4kc 5 ปีที่แล้ว +2

      @@aarushsharma5966 actually by keeping mysqli it is also not working

    • @tomashotarek9363
      @tomashotarek9363 4 ปีที่แล้ว

      @@kirankumar-kz4kc hi, did u find a solution?

    • @haibaraai1690
      @haibaraai1690 3 ปีที่แล้ว

      How to solve it?

    • @micooo22
      @micooo22 3 ปีที่แล้ว

      same

  • @nareshkanigiri4639
    @nareshkanigiri4639 4 ปีที่แล้ว

    The value of the variable input is a string 458,2,30,4.9,58.2,6,7.2. Write a function to get the sum of integers in the string?
    sir could you please ans the Q

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

    I literally copied everything from the beginning to end, there is always an error.

  • @younesssh1960
    @younesssh1960 3 ปีที่แล้ว +1

    This tutorial just helped me a lot with my homework! Thanks

  • @lolrogi
    @lolrogi 5 ปีที่แล้ว +6

    Wait what? Are you storing passwords in plain text?

    • @invalidcode
      @invalidcode 5 ปีที่แล้ว +1

      you can just find an online password encrytor..

    • @poltergeist19
      @poltergeist19 4 ปีที่แล้ว

      invalid cross php comes with a built in function called md5 (which is an hashing algorithm) so when you create the register page before inserting the user infos you do $pass = md5($pass); and then on the login page, before checking if the password is the same as the one in the database you do the same thing to check if the hash of the password is the same

  • @ajita.kenjale1597
    @ajita.kenjale1597 7 ปีที่แล้ว +1

    Easy to understand.
    It would be great if you would have explained it.

  • @nayankamanwar
    @nayankamanwar 7 ปีที่แล้ว +3

    The code worked for me.. Thank you !!

  • @MrBout-sc1xh
    @MrBout-sc1xh 6 ปีที่แล้ว

    Finally I found the best video on TH-cam

  • @EyeSecretsOfficial
    @EyeSecretsOfficial 5 ปีที่แล้ว +11

    Thanks for this video. Was exactly what I needed.

    • @Sejiko
      @Sejiko 4 ปีที่แล้ว +2

      Please noooooooo! everything is bad drom this video!

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

    Great tutorial mate. Although I just uncovered a fatal shortcoming. when you leave the username and password fields blank, the web page will log you in regardless. Is that a fault on my end?

  • @nonopanzu1193
    @nonopanzu1193 5 ปีที่แล้ว +4

    Thank you very much for this tutorial: Great!
    Your tutorial is clearly showing how and where to create the files code and how to display them for testing in a browser, Well Done.
    Nevertheless, there is a problem with error handling. I just tried to do a test by entering a wrong username and password to see the result. And then it created a big issue!

    • @AL_Mir29241
      @AL_Mir29241 5 ปีที่แล้ว +1

      you have to forget everything from this video because its horrible, horrible and very horrible

  • @tejashreeborbande2568
    @tejashreeborbande2568 4 ปีที่แล้ว +1

    i am getting error at this line
    $result = mysql_query("select *from users where username = $username and password = $password") or die("Failed to query", mysql_error());
    error is: Parse error: syntax error, unexpected ',', expecting ')' in C:\xampp\htdocs\process.php on line 20
    not able to find solution..kindly suggest appropriate answer

    • @shubhamkatore3451
      @shubhamkatore3451 4 ปีที่แล้ว

      die("Failed to query".mysql_error());
      There is no comma inbetween....use dot....hope it works :)

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

    why didn't u use MySQLI commands
    and for what versions of php this code works

  • @Mustafa20142
    @Mustafa20142 5 ปีที่แล้ว +2

    Parse error: syntax error, unexpected ')' in C:\xampp\htdocs\Login\process.php on line 10
    what that's wrong

  • @CrazyCorrs
    @CrazyCorrs 8 ปีที่แล้ว +5

    When I press login nothing shows up there is no writing?

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

      lol i realized that it was blank for me coz i entered the html into the process.php folder rather then login.php

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

      same for me

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

      haoh

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

      haoh h

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

      haoh hc

  • @oneforallchannel8134
    @oneforallchannel8134 4 ปีที่แล้ว

    ignoring the fact there's no audio in this tutorial, this is a great tutorial. 1 thousand people who dislike this is a spoiled brat

  • @itsmarsu
    @itsmarsu 5 ปีที่แล้ว +15

    DO NOT FOLLOW THIS TUTORIAL FOR A REAL-WORLD PROJECT
    If you want to see what a developers workflow is like, this video does a great job of demonstrating.
    But the actual code is very likely to break and it uses really outdated procedures, even for 2015.
    Please find yourself another tutorial made in the last 6 months or so.
    Preferably one that teaches you about password hashing, prepared statements, and writing functions to reduce messy duplicate code.
    Or better yet, find a framework you can use that takes care of database stuff for you. There's no sense in re-inventing the same thing all the time when there's hundreds of options out there to make your job easier, your code more secure, and your time better spent. For free.

    • @itsmarsu
      @itsmarsu 5 ปีที่แล้ว +1

      @@kevintran2516 Your age might be starting to show somewhat then

    • @wh1pme
      @wh1pme 5 ปีที่แล้ว

      @@itsmarsu oof

    • @ianfer2422
      @ianfer2422 5 ปีที่แล้ว

      @@kevintran2516 you mean ur not even using password hashing.

  • @gergoo007_
    @gergoo007_ 5 ปีที่แล้ว +2

    Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in X:\xampp\htdocs\db_test\process.php:15 Stack trace: #0 {main} thrown in X:\xampp\htdocs\db_test\process.php on line 15 pls help

    • @elyricm6691
      @elyricm6691 4 ปีที่แล้ว +1

      Same problem, help us please

    • @Dxntoo
      @Dxntoo 4 ปีที่แล้ว

      use mysqli_real_escape_string() NOT mysql_real_escape_string()

    • @manishkanade4972
      @manishkanade4972 4 ปีที่แล้ว

      @@Dxntoo still it doesn't work

  • @jemcastillo5764
    @jemcastillo5764 4 ปีที่แล้ว +3

    Uncaught Error: Call to undefined function mysql_real_escape_string()

  • @1110rams
    @1110rams 3 ปีที่แล้ว +1

    Failed to query database Unknown column 'password' in 'where clause', please help me bro

  • @Hunter725R
    @Hunter725R 5 ปีที่แล้ว +25

    is this the renaissance of janky 2008 youtube tutorials?

  • @ravikantsingh6000
    @ravikantsingh6000 5 ปีที่แล้ว +1

    Which version of xamp you used in this video , i'm using the same process the same code but im getting an error "Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\login\process.php:7 Stack trace: #0 {main} thrown in C:\xampp\htdocs\login\process.php on line 7" .....................................plzzzzzzzzzzzz help!!!!!!!!!!!!!!!(important fo my project)

  • @madmaxxx891
    @madmaxxx891 8 ปีที่แล้ว +71

    18 mins of silence...... in my life

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

    nice video thxs sir but sir postsuch a video in that video if any one register the form ..then that data of the person save in database show the owner of the any website or etccc......

  • @ZedEarthnut
    @ZedEarthnut 7 ปีที่แล้ว +3

    Good video, but pro-tip. Set it to playback 2x the original speed.

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

    can you tell me which editor you are using
    and many thank for your description is more than enough

  • @nvae1502
    @nvae1502 6 ปีที่แล้ว +3

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

    • @meghanareddy8362
      @meghanareddy8362 6 ปีที่แล้ว +1

      DDT Gaming use mysqli instead of mysql

    • @nvae1502
      @nvae1502 6 ปีที่แล้ว +1

      @@meghanareddy8362 i have solve it.. Anyway tq for the reply

    • @codeflex5180
      @codeflex5180 6 ปีที่แล้ว +1

      I have this error too

    • @nvae1502
      @nvae1502 6 ปีที่แล้ว +1

      @@codeflex5180 use mysqli instead of mysql

    • @codeflex5180
      @codeflex5180 6 ปีที่แล้ว +1

      @@nvae1502 Thanks for a lot! It's work!

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

    Failed to query database You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where username = '' and password = ''' at line 1
    I don't get this. Can you help me to solve. It kinda freaking me out !

  • @aaronangeles2119
    @aaronangeles2119 7 ปีที่แล้ว +6

    its not working, failed to query database No database selected

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

      change the database with the name from yours

  • @sakshamsangeet2322
    @sakshamsangeet2322 4 ปีที่แล้ว +1

    Done same codeing but shoing fatal errors in 2020

  • @subhenshujena9862
    @subhenshujena9862 5 ปีที่แล้ว

    This was a very useful and helpful video understanding. Thank you so much for creating this one. keep it up and all the best.

  • @sravankumbum3506
    @sravankumbum3506 5 ปีที่แล้ว +3

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

    • @juliusp147
      @juliusp147 5 ปีที่แล้ว

      Me too

    • @orlyganap8871
      @orlyganap8871 5 ปีที่แล้ว

      mine too

    • @some4ody113
      @some4ody113 4 ปีที่แล้ว

      @Rainiel Gwapo Could you explain why?

    • @some4ody113
      @some4ody113 4 ปีที่แล้ว

      @Rainiel Gwapo so the i behind mysql isn't like made up. It really is needed and can't be another letter? Thanks for the quick reply!

    • @sh44ko58
      @sh44ko58 3 ปีที่แล้ว

      @Rainiel Saclay like how i change it to mysqli but still not working ):

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

    How to print report to dot matrix printer sir? Could you advice me

  • @gaminglife2199
    @gaminglife2199 5 ปีที่แล้ว +3

    Parse error: syntax error, unexpected '$username' (T_VARIABLE) in C:\xampp\htdocs\login\process.php on line 20
    PLEASE HELP ME

    • @ehhniko
      @ehhniko 4 ปีที่แล้ว

      echo "Login success, welcome! ".row['username'];

    • @dnrm
      @dnrm 4 ปีที่แล้ว +1

      Maybe you missed a ";"

    • @yonasmelesse8558
      @yonasmelesse8558 4 ปีที่แล้ว

      you have missed a semicolon

  • @rebinmajed_4k894
    @rebinmajed_4k894 2 ปีที่แล้ว +1

    hi process.php line 9 Eroor how fix code plz

  • @villadon3464
    @villadon3464 7 ปีที่แล้ว +8

    The page isn’t working
    is currently unable to handle this request.
    HTTP ERROR 500 getting error

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

      same

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

      same here. did you solve?

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

      because guys he is using the old commands for MySQL if u have newer version of PHP it won't work

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

      it will work for the connection but some codes are written differently it won't work even if you change it because other error will pop up

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

      look I don't need to do it cuz I can write it myself this video showed up in the suggestion bar and I click it just from pure interest to see how many people will have errors and I was right almost 90% of the comments is about the same issue that is occurring

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

    what should i do i i am using ubuntu. I dont have the htdocs folder to create file into,which folder should i do it

  • @driesdaz
    @driesdaz 7 ปีที่แล้ว +4

    got an HTTP Error 500

  • @bravosix6738
    @bravosix6738 4 ปีที่แล้ว +2

    IDK who you are. But I have to say. You are a GOD.

  • @miguelnogueira8180
    @miguelnogueira8180 5 ปีที่แล้ว +4

    This video is severely outdated, unhashed passwords and old deprecated mysql extension, and old methods
    p.s. i know there's a better version out there

    • @KnowledgeClass.
      @KnowledgeClass. 5 ปีที่แล้ว

      can't you see it was uploaded 2015...what do you expect hater?

  • @webmagic1163
    @webmagic1163 3 ปีที่แล้ว

    Thank you so much...Your Video is so much useful. I am always grateful to you....Best of luck...........

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

    this is helpful. tho i need to use mysqli instead of mysql

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

    dear where we print login successfully then how we can put a query which update records who has entered username and password

  • @YTMAXTURBO
    @YTMAXTURBO 3 ปีที่แล้ว

    congratulations, but I ask for this configuration file or login and index and css etcc all these files to log in where should they be installed?
    in phpadmin from menu import? and how do i connect url login file
    to my domain on the webpage sl login button? where do i find url of the login file?
    Thank you

  • @jonnys-james1226
    @jonnys-james1226 4 ปีที่แล้ว

    Does the folder need to be saved in the exact location? I'm working on a macbook so don't have that file? And the login file is .php, should it work if it was .html?

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

    I get this error:
    Failed to query databaseYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table where username = 'username' and password = 'password'' at line 1
    What should I do?

  • @nadeemje509
    @nadeemje509 3 ปีที่แล้ว

    sir ham jo movies downld krte h woh lcd p not play

  • @Mentos-Huh
    @Mentos-Huh 4 ปีที่แล้ว +2

    why is your php code giving me a deadloop of: echo "Connected successfully"

  • @LinuxLuddite
    @LinuxLuddite 5 ปีที่แล้ว

    It would be better if you can if videos are zoomed in showing only the coding instead of the whole screen. It's difficult to read it watching from an average handset. Or perhaps increase the font size

  • @janbures_com
    @janbures_com 3 ปีที่แล้ว +1

    mysql_real_escape_string: This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0.

  • @likeashitremixit
    @likeashitremixit 5 ปีที่แล้ว

    Hey Ian I am not familiar with the new Javascript syntax, what resource would you recommend to a person that is taking the web dev boot-camp course and wants to know how to write new javascript syntax and see how it is written now compared to before? also, another question, if a potential employer sees our version of yelp camp written with old javascript syntax from the course, would this be viewed negatively? thanks in advance brother.

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

    pls help me what is this failed to query databaseTable 'login.users' doesn't exist

  • @TOMRYANLUKE
    @TOMRYANLUKE 4 ปีที่แล้ว

    Thank you for taking the time do complete this video.. much appreciated.

  • @LovelyMarvelaMangoting
    @LovelyMarvelaMangoting 4 ปีที่แล้ว +1

    is this live call recording? in india?

  • @kaflinsuranceresources1568
    @kaflinsuranceresources1568 5 ปีที่แล้ว

    With CSS hero if you change anything on the pages, does it change the CSS code across the site or just that page you are on? I would be afraid it could modify the whole site. Let me know.

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

    I have a problem. When I click login the whole php code comes up in the new web page.

  • @r4malho80
    @r4malho80 5 ปีที่แล้ว

    bom dia tenho um projeto aqui em casa com arduino uno para abrir o portão de casa pelo celular, agora quero colocar a minha camera do dvr intelbras na mesma tela. para quando eu ver a camera poder apertar o botão do portão. mais não estou conseguindo, pois não consigo dar player no rtsp . o que eu faço ???

  • @FaithPaddy
    @FaithPaddy ปีที่แล้ว

    please i dint know why but i got this error "Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\" .please how to i solve it

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

    Can you have with this approach? Or it's not necessary to track session on the main login page?

  • @tada5317
    @tada5317 2 ปีที่แล้ว

    i have error from this film when i make a login page like your login page !!!! why?!

  • @sauloramosdesouza844
    @sauloramosdesouza844 3 ปีที่แล้ว +1

    it was like watching a good Charles Chaplin movie. Applause!

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

    please i do the same code but i have this problem:
    Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\login\process.php:9 Stack trace: #0 {main} thrown in C:\xampp\htdocs\login\process.php on line 9
    How fix it??

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

    sir aap jab AND base pe query use kar rhe ho than no need to compare the username with the form data bcz if you enterd the correct data than only the query return something otherwise there is no data in row....so make code lesser

  • @Felix-vb3eu
    @Felix-vb3eu 3 ปีที่แล้ว

    Thank u a lot! By the way, we are writing the year 2021, is this method still secured? I heard about that you can use MySQL Commands in the login input

  • @bilalsoomro4714
    @bilalsoomro4714 3 ปีที่แล้ว +2

    Parse error: syntax error, unexpected 'OR' (T_LOGICAL_OR) in C:\xampp\htdocs\practice\process.php on line 18

  • @ramaelnebilsi2912
    @ramaelnebilsi2912 2 ปีที่แล้ว

    mysqli_real_ecsape_string its has error that : "unfiend" or " expected 2 arguments" like this error.. does anyone know this problem?

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

    My login page isn't showing up.
    After giving localhost/mywebsite/loginn.php it's showing blank page any idea why?