25 thoughts on “PHP Tutorials: Register & Login: User login (Part 1)

  1. @isam919 I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);

  2. @McbainGames I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);

  3. @Martinsvk11 I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);

  4. @aReason4music I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);

  5. @Zaila1337 I had this same problem after extensive research and headache I found out that, you must set a password for your phpMyAdmin. Once you have done that in every line of in the mysql_connect function you need to put your password into the parameters, in the 3rd set of quotation marks. Example: $connect = mysql_connect(“localhost”,”root”,”ENTER YOUR PASSWORD HERE”);

  6. @keepr0ck Make sure you have the text input name the same as
    $username = $_POST['TEXTBOX NAME'];
    $password = $_POST['TEXTBOX NAME'];

    Remember its case sensitive.

  7. I get this after i click the button log in
    Notice: Undefined index: username in C:xampphtdocssitealogin.ph­p on line 2
    Notice: Undefined index: password in C:xampphtdocssitealogin.ph­p on line 3
    Please Enter a username and a password

  8. Parse error: syntax error, unexpected T_STRING in C:xampphtdocsProjectlogin.php on line 10

    my line 10 is “mysql_select_db(“phplogin”) or die(“couldnt find db”);”

  9. @smokenfly514 gotta make sure the filetype is .php, the easiest way to check this is to look and see if the page says localhost/login.php.txt or something like that

  10. @keepr0ck seems like you may have forgotten the name=”username” and name=”password” in the index.php file or the name is not spelled the same (it is case sensitive)

  11. the main mistake most tutorial given they just guide us for writing coding only without showing the software setting and we are the beginner headache to find the error or compare the source code while unable to running the program … PLEASE TAKE NOT ON THIS ISSUES FOR WHO WANT TO GIVE TUTORIAL .. but very appreciate for tutorial given….
    what i’m facing here problem with database connection and find out that i didn’t thick allow url include from PHP setting… GOOD tutorial.. thanks ya

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>