What exactly do you mean with "make a login system"?
isnt kapojian`s solution ok?
What exactly do you want?
What you need is a connection string to succesfully connect to database, its structure, to knnow the table names and their fields, so you are able with a help of query statement get appropriate data back out --> to get username and password, and check if they exiast and if they suit to each other.
What else do you need?
So this thread is solved then, kapojan spoon fed you the answer. Although I highly recommend not passing passwords around the internet unencrypted.
People on daniweb don't usually like to completely solve your problem for you. Usually it is a good idea to do as much research as you can then post your code (primarily the aspects that are not working) and we will all happily point out ways to troubleshoot it/improve it.