Français
  • PHP Tutorials: Register & Login: User login (Part 1)


    Added on Wednesday 11 February 2009 16:01:47
    by phpacademy
    312400 Views
    4.8 / 5
    12345
    904 rates
    Send this video to your friends
    Get embed code of video

    Part of the 'Register & Login' Project from PHP Academy. This tutorials walks you through how to process a username and password based login against details found in a database, set a session, and process a logout function.



    facebook
  • Write your comment here...
  • terenjan

    @flameball124 that's I guess default language after installation.. :/ but it's easy to change ..
    Thursday 09 February 2012 13:40:13
  • LetsSpotIt

    sexy accent
    Thursday 09 February 2012 06:21:21
  • rcreveiwers

    No use how do we know how to set up php my admin No help atall
    Wednesday 08 February 2012 15:35:43
  • flameball124

    @jakub155time no semi colon
    Tuesday 07 February 2012 22:47:57
  • flameball124

    lol my phpmyadmin is in german :(
    Tuesday 07 February 2012 20:26:41
  • TehhEric

    Great for beginners.
    Friday 03 February 2012 14:08:36
  • funkyspyspy

    @TheOfficialJaysus Try asking your server provider.
    Friday 03 February 2012 00:17:27
  • funkyspyspy

    @jakub155time else die ("You didn't enter a password or a username."); You forgot ;
    Friday 03 February 2012 00:16:56
  • jakub155time

    Parse error: syntax error, unexpected '}' in /home/u370907953/public_html/login.php on line 14 The part of that is: } else die("You didn't enter a password or a username.") ?> What did I do?
    Thursday 02 February 2012 15:10:05
  • TheOfficialJaysus

    Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/content/50/8811650/html/User login.php on line 10 couldn't connect! how do i fix this error ????
    Tuesday 31 January 2012 23:00:53
  • sultneulven

    @tinkertweaks1 it's true:)
    Tuesday 31 January 2012 19:01:17
  • fatballer18

    Parse error: syntax error, unexpected T_LOGICAL_OR in C:\xampp\htdocs\good\checklogin.php on line 9. I keep on getthing this error not sure what im doing wrong any idea thanks.
    Monday 30 January 2012 20:04:53
  • tinkertweaks1

    @sultneulven no website is safe facebook and twitter is always getting hacked and there have the pro working for them.
    Monday 30 January 2012 19:54:15
  • tinkertweaks1

    @ryankrucker REPLACE myspl_connect() with mysql_sql("datebase host","database username","database password"); put info into the quotes.
    Monday 30 January 2012 19:52:17
  • ryankrucker

    I keep getting "Fatal error: Call to undefined function myspl_connect() in C:\xampp\htdocs\login.php on line 9"
    Monday 30 January 2012 18:27:21
  • 13firebug13

    Every one it seems that the first time i tyied this i didn't work but i was using wamp so i tried it on my website, my website host is Cixx6.com so putting the login/register system on my site worked so for all you people if you are using it on wamp and it don't work try upload the system to your site and it might work.
    Sunday 29 January 2012 03:41:24
  • PenguinDumbledore27

    @ActiveBassDestroyer (my previous reply was cut off :|) You would probably want to pass the user's ID or username via a variable (so it's available also on delete.php) and then add this code to delete.php: $delete = mysql_query("DELETE FROM phplogin WHERE username='" . $_SESSION['username'] . "'"); //Replace $_SESSION['username'] with the variable that stores username ;)
    Sunday 29 January 2012 02:58:52
  • HartProduction

    Right now I'm a using Dreamweaver CS5 to write the code, why is it that when I hit Log In @ 8:36 I get directed to the index.php with all the code on the webpage. If your confused, I click Log in just like he does @ 8:40 but instead of me seeing a blank web page, I see my index.php code. What should I do? Where did I mess up?
    Saturday 28 January 2012 10:59:20
  • maxmajki

    Where do you save all your files?
    Saturday 28 January 2012 09:39:21
  • ActiveBassDestroyer

    what i would like to no is there away if someone has a registered with us,that they can delete there account,so they dont have to email me to take them off the database? just saves me from going into phpadmin and deleting the user ,if so what script would i attach for this thanks
    Wednesday 25 January 2012 07:08:51
  • TheJuli1241

    @sultneulven it 80% safe
    Monday 23 January 2012 13:58:08
ADVERTISEMENT
Supplements
Social Network
Tag cloud