Login Page - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Login Page

cdjones4cdjones4 Posts: 1Member
I'm trying to make a program in which employees log into. I am having trouble with the login page in that I need to validate the login making sure that the employee name and employee password come off the same row of the table.. Could someone please help me code this??!!
Thanks

Comments

  • shrekshrek Posts: 18Member
    hi,
    if login is unique (should be) then just select passwd from database where login is the same like login passed by user and compare string from database with string passed by user.
    or
    select count(*) from users_table_name where login like 'login' and passwd like 'passwd' - if query return 0 then login or passwd is failed.



Sign In or Register to comment.