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.
25 thoughts on “PHP Tutorials: Register & Login: User login (Part 1)”
Leave a Comment
You must be logged in to post a comment.
I wish these videos would have been out when I started PHP, I had to learn it by messing around with stuff 😛
looking for part 2????
but can you use them together or you have to use one convention?
@iTenzo1 Mysql was the original code when mysql came out. You can do more with the mysqli if you are using verisions 4. 1+ of mysql.
what the difference between mysql_connect() & mysqli_connect()?
what happend to the code between pt 3 and 4?
Parse error: syntax error, unexpected T_LOGICAL_OR in C:xamppphpMyAdminloginlogin. php on line 9
Visit my channel. I offer a Free PHP User Registration System including: Log in, Log out, Register New User, Update User Profile
hay im getting the same error message Parse error: syntax error, unexpected T_ELSE in C:xampphtdocsphpwebsitesvirtual-hqlogin. php on line 13so please help me out !!! tthanks and keep up the good work!!!
You should have named it Php & MySQL, some people do not utilize MySQL and probably have to use . htaccess files in turn you should release just a PHP one.
You should have added a name for the submit on the index page. They are useful for issets and for gets/posts.
Idogish 000webhost @ sql dont work: ‘(
Aloha. . I was viewing your clip and I have a problem and I’m with hostgator and unfortunately they aren’t able to assist me. So I saught other avenue and you came up here. My problem is this: Parse error: syntax error, unexpected T_STRING on line 1, not sure what to look for or do? I was told to go in my cpanel to correct this. Its not like I know how to or even know where to start. I hope someone can help me? ASAP. . . my site is down! ;( Lani
I LOVE YOU!
my login now is working abit more but when i use my admin user and pass it says could not connect to database and im sure its all named right
okay when i login it gives the error for no user and pass
it should say when you go to their website, login and go to the control panel
thanks a lot 😀
what would be the host name for 000webhost????
hey thanks a lot!! this is just wat i need. he first tutorial worked great. if i have problems with your other tutorials will you respond to my comments?
It would be really helpful if you made files you could download with this in it so that it’s a bit easyier. thanks.
exactly what i needed
Nice of you!
@twelvezeroseven hey bro there is problem with ur mysqluse WAMP SERVER it is pre configured
great tutorial! (too bad i cant get it to work. . . )everything is followed exactly as described in all 3 parts, but i get an error. Warning: mysql_connect() [function. mysql-connect]: Access denied for user ‘alex’@’ . . . . ‘ (using password: YES) in . . . . . on line 12the . . . . is information i decided to withhold. im attempting to access through the alex 123 l/p and receive the above message. . . your help is greatly appreciated!!!!thank you!