You May Also Like

About the Author: csstutorial


  1. yea followed your tut but i get a diffrent error
    :Parse error: syntax error, unexpected ‘username’ (T_STRING) in C:xamppphtdocsloginlogin.php on line 6

    and cant seem to find the problem if some could tell me where to look id be happy

  2. Thanks for this man! U tried it and it worked but how do you display the logged in username(or any type of information from the database) to the index page?

  3. love the way you not only tutor but also edicate. you don’t just ‘show’ but also show the best and most effective way. thanks for your effort sir!

  4. im not getting any return statement for correct or incorrect usernames. can you upload the example on github or pastebin?

  5. can someone help me, I keep getting the error “Fatal error: Call to a member function prepare() on null in MYsql.php” and I can’t figure out why this would be. My server is on PHP 7 and I followed this tutorial exactly (except CSS) as far as I can tell

  6. Wow. I don’t have any PHP or mySQL experience, but I somehow managed to follow along. I clearly have a lot to learn! Now, I just have to figure out how to upload this to a website! Cheers. By the way, I like that you had errors. There were several times when I was questioning things, but when you had the errors and and went back to fix them, I had my answers.

    Also, I’m not sure, but you didn’t put curly brackets around the if(isset($_COOKIE…. but it didn’t seem to affect the code. It seems to work whether or not they were in. Do you not need them? Anyway, Thanks for the great vid!

Leave a Reply

Your email address will not be published. Required fields are marked *