PHP Code for checking username and password

Hello there web experts!
I really need your help on this problem.
I am a newbie to web programming especially PHP and I just started making a sample website to test what I have learned.
I have there on my database a table called account and the columns there are username and password.
How can I check in my database if the input username and password is correct.
What are the php codes for this guys?
Thanks.
