Login system using PHP with MYSQL database

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 1,2 тыс.

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

      ruclips.net/video/d1PdlScCVOo/видео.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?

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

  • @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 года назад

      ruclips.net/video/d1PdlScCVOo/видео.html

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

  • @MrBout-sc1xh
    @MrBout-sc1xh 6 лет назад

    Finally I found the best video on RUclips

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

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

  • @steffdulos4055
    @steffdulos4055 8 лет назад +13

    this tutorial just helped me a lot with my homework!

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

  • @dejanandric7337
    @dejanandric7337 8 лет назад +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 5 лет назад +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.

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

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

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

  • @silviacarrozzo9046
    @silviacarrozzo9046 7 лет назад +3

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

  • @hajji384
    @hajji384 3 года назад

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

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

  • @sauloramosdesouza844
    @sauloramosdesouza844 3 года назад +1

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

  • @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: ruclips.net/video/lGYixKGiY7Y/видео.html and thanks for watching!

    • @indiandjremixclub8667
      @indiandjremixclub8667 5 лет назад

      Can you help me !!

  • @bravosix6738
    @bravosix6738 5 лет назад +2

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

  • @Hunter725R
    @Hunter725R 5 лет назад +25

    is this the renaissance of janky 2008 youtube tutorials?

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

  • @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 5 лет назад

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

    • @MelatiSenja123
      @MelatiSenja123 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']);

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

  • @nayankamanwar
    @nayankamanwar 7 лет назад +3

    The code worked for me.. Thank you !!

  • @webmagic1163
    @webmagic1163 3 года назад

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

  • @ZedEarthnut
    @ZedEarthnut 7 лет назад +3

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

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

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

  • @ajita.kenjale1597
    @ajita.kenjale1597 7 лет назад +1

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

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

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

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

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

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

  • @TOMRYANLUKE
    @TOMRYANLUKE 4 года назад

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

  • @madmaxxx891
    @madmaxxx891 8 лет назад +72

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

  • @taizaki
    @taizaki 7 лет назад

    THANKS A LOT! Helped me with our final project hahaha

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

  • @lyrical_shorts_143
    @lyrical_shorts_143 3 года назад

    wow so fast we created a login page !!!!

  • @blackhood1996
    @blackhood1996 7 лет назад +7

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

  • @mk485eg
    @mk485eg 5 лет назад

    An amazing work man even without a voice you make it easy to understand and read, many thanks man'

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

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

  • @x0m4nke70
    @x0m4nke70 3 года назад

    Bro! it's Amazing You slove my problem! Thanks!!!

  • @CrazyCorrs
    @CrazyCorrs 8 лет назад +5

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

  • @amjadhussain2135
    @amjadhussain2135 8 лет назад

    Thank u, it is very informative for me, it is more better when audio voice is included to this video tutorial

    • @AwaMelvine
      @AwaMelvine  8 лет назад

      Thanks for watching. I will try to use audio next time.

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

  • @lazarstefak5122
    @lazarstefak5122 3 года назад

    I will download it right now, thanks for your always so good and quality work.

    • @webtutorial4817
      @webtutorial4817 3 года назад

      ruclips.net/video/d1PdlScCVOo/видео.html

  • @jemcastillo5764
    @jemcastillo5764 4 года назад +3

    Uncaught Error: Call to undefined function mysql_real_escape_string()

  • @deepikadwivedi9610
    @deepikadwivedi9610 4 года назад

    super knowledgeable this video is ..thank you

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

  • @claudiobras22
    @claudiobras22 8 лет назад

    thank you very much. very helful tutorial for beginner

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

  • @addisusintie260
    @addisusintie260 3 года назад

    what a brief tutor bra

  • @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 5 лет назад

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

    • @dnrm
      @dnrm 4 года назад +1

      Maybe you missed a ";"

    • @yonasmelesse8558
      @yonasmelesse8558 4 года назад

      you have missed a semicolon

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

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

  • @villadon3464
    @villadon3464 8 лет назад +8

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

    • @michaeldriscoll3728
      @michaeldriscoll3728 8 лет назад

      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

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

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

  • @TamARaPOrtEr1
    @TamARaPOrtEr1 7 лет назад

    Thank You I got it to work because of you and a few changes

  • @unperuanodice1349
    @unperuanodice1349 4 года назад +4

    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 please help me

  • @prashantdwivedi9527
    @prashantdwivedi9527 3 года назад

    It was very helpful
    Thanks Mate!

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

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

  • @driesdaz
    @driesdaz 8 лет назад +4

    got an HTTP Error 500

  • @programmingbodylanguage2889
    @programmingbodylanguage2889 8 лет назад

    Thanks for example. It was very sample and very useful

  • @tdprasad2662
    @tdprasad2662 7 лет назад +2

    Exlent tutorial....THQ Sir........

  • @ntindawellingtontileni1241
    @ntindawellingtontileni1241 2 года назад

    thanks very much for this tutorial....

  • @norsyazfyerarosli7504
    @norsyazfyerarosli7504 2 года назад +1

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

  • @techveerasekhar4820
    @techveerasekhar4820 4 года назад

    it is really helpful to our project

  • @engineersguild8889
    @engineersguild8889 3 года назад +1

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

  • @vid_gamer_og_fan_rivals1434
    @vid_gamer_og_fan_rivals1434 5 лет назад +2

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

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

  • @DcodeShow
    @DcodeShow 4 года назад

    It worked well enough.. Perfectly working. Thanks a lot!

    • @ste1747
      @ste1747 Год назад

      This code is insecure.

  • @dawanida8614
    @dawanida8614 7 лет назад

    Awesome video. II had to try it And can do so thanks very much, I will follow you to the next video.

  • @anthonysalazar6505
    @anthonysalazar6505 7 лет назад

    thank you bro you help me a lot for my project ....

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

  • @kranthikumar7622
    @kranthikumar7622 7 лет назад

    very nice explanation... thanq...

  • @alianatashabintiabdulaziz7209
    @alianatashabintiabdulaziz7209 4 года назад

    This video really help me a lot

  • @djavelli
    @djavelli 7 лет назад

    Very useful ,thnx, keep upthe good work...

  • @levyroth
    @levyroth 7 лет назад

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

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

  • @mdmosharafhossain7538
    @mdmosharafhossain7538 4 года назад

    simple, easy and u r great & thank u.

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

  • @RK-bh7zf
    @RK-bh7zf 4 года назад

    Thanks! Dude you saved my project :)

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

  • @volodymyrzakolodyazhny
    @volodymyrzakolodyazhny 3 года назад

    It was really helpful. Thanks!

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

  • @stevensmith4147
    @stevensmith4147 5 лет назад

    Same issue yesterday, tech support for 30 minutes... went this morning traded in cable box, it worked for 20 minutes, Please Wait, called tech support, suggested reboot, You mean where I unplug the box, wait 1 minute, plug back in, L-9, L-8, L-3... Please Wait, scheduled a noon-1pm for Tuesday tech to come out, must tell boss my tv is more important than the job. If he had his priorities straight he would understand.

  • @haider3936
    @haider3936 5 лет назад

    defined in easy way thanks

  • @maheba5445
    @maheba5445 8 лет назад

    Is there an updated version that one can use for php 7, the syntax mysql_fetch_array was removed in php 7 , tried just changing it to mysqli_fetch_array but it didn't work. Please help ASAP.
    error: Parse error: syntax error, unexpected '$row' (T_VARIABLE) in C:\xampp\htdocs\login\process.php on line 19