Skip to content

Ozar.net Developer Blog

Programming in PHP, C, C#, ASP.NET, Java, Objective-C, SQL also for MS SQL Server, Oracle & MySQL Development

Menu
  • Home
  • About
  • Tutorials
  • Contact
  • Privacy
Menu

PHP Tutorials: Register & Login: User login (Part 1)

Posted on April 23, 2010April 23, 2010 by OD


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)”

  1. linklovezelda says:
    April 23, 2010 at 12:10 AM

    I wish these videos would have been out when I started PHP, I had to learn it by messing around with stuff 😛

    Log in to Reply
  2. DJRiD3 says:
    April 23, 2010 at 12:19 AM

    looking for part 2????

    Log in to Reply
  3. iTenzo1 says:
    April 23, 2010 at 1:19 AM

    but can you use them together or you have to use one convention?

    Log in to Reply
  4. melodyshero says:
    April 23, 2010 at 1:42 AM

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

    Log in to Reply
  5. iTenzo1 says:
    April 23, 2010 at 2:31 AM

    what the difference between mysql_connect() & mysqli_connect()?

    Log in to Reply
  6. royman114 says:
    April 23, 2010 at 2:43 AM

    what happend to the code between pt 3 and 4?

    Log in to Reply
  7. Guidotjes1230 says:
    April 23, 2010 at 3:15 AM

    Parse error: syntax error, unexpected T_LOGICAL_OR in C:xamppphpMyAdminloginlogin. php on line 9

    Log in to Reply
  8. ashperfectimage says:
    April 23, 2010 at 3:25 AM

    Visit my channel. I offer a Free PHP User Registration System including: Log in, Log out, Register New User, Update User Profile

    Log in to Reply
  9. machine1112 says:
    April 23, 2010 at 4:04 AM

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

    Log in to Reply
  10. mattdademon says:
    April 23, 2010 at 4:30 AM

    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.

    Log in to Reply
  11. mattdademon says:
    April 23, 2010 at 4:58 AM

    You should have added a name for the submit on the index page. They are useful for issets and for gets/posts.

    Log in to Reply
  12. ThaPaddeProductions says:
    April 23, 2010 at 5:24 AM

    Idogish 000webhost @ sql dont work: ‘(

    Log in to Reply
  13. lnkee says:
    April 23, 2010 at 6:08 AM

    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

    Log in to Reply
  14. jopiloot says:
    April 23, 2010 at 6:24 AM

    I LOVE YOU!

    Log in to Reply
  15. harryrockin says:
    April 23, 2010 at 6:34 AM

    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

    Log in to Reply
  16. harryrockin says:
    April 23, 2010 at 7:17 AM

    okay when i login it gives the error for no user and pass

    Log in to Reply
  17. librahim says:
    April 23, 2010 at 7:42 AM

    it should say when you go to their website, login and go to the control panel

    Log in to Reply
  18. afacar1985 says:
    April 23, 2010 at 7:45 AM

    thanks a lot 😀

    Log in to Reply
  19. idogish says:
    April 23, 2010 at 8:32 AM

    what would be the host name for 000webhost????

    Log in to Reply
  20. mag1cwand says:
    April 23, 2010 at 9:09 AM

    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?

    Log in to Reply
  21. MrDesign4Me says:
    April 23, 2010 at 9:19 AM

    It would be really helpful if you made files you could download with this in it so that it’s a bit easyier. thanks.

    Log in to Reply
  22. sekulr says:
    April 23, 2010 at 9:21 AM

    exactly what i needed

    Log in to Reply
  23. th3computeradmin says:
    April 23, 2010 at 9:51 AM

    Nice of you!

    Log in to Reply
  24. fireofgemini says:
    April 23, 2010 at 10:28 AM

    @twelvezeroseven hey bro there is problem with ur mysqluse WAMP SERVER it is pre configured

    Log in to Reply
  25. twelvezeroseven says:
    April 23, 2010 at 11:22 AM

    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!

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • NSTableView with Core Data Tutorial using NSFetchedResultsController
  • CodeIgniter Wizard – a new PHP CRUD Code Generator for macOS
  • Installing Oracle Database 10g Express Edition and Changing the Default HTTP Port
  • Xcode Tutorial 2 – Putting iAd into your App (The Apple Approved Way)
  • Cocoa Programming: A Quick-Start Guide for Developers

Blogroll

  • All Systems GO
  • GOZmosis
  • Maclord's Blog
  • Ozar.net

Tags

.NET 2008 application ASP.NET basic Beginning best books business Business Objects C# Database Databases Development Edition Guide iPhone Java Java EE learn Learning Microsoft MS SQL Server MySQL Objective-C Programming objects Oracle Part PHP PL/SQL Professional Programming Server Software SQL T-SQL TSQL Tutorial Tutorials Using Video Visual Visual Basic .NET Web Programming Tutorials XCode
© 2025 Ozar.net Developer Blog | Powered by Minimalist Blog WordPress Theme