Yes Rockstar, Neo got his point, so now let me go a little deep to talk about the database thing. On that case you might like to have usernames and passwords as well, so include fields for that on your database. For this example let us call them user_field and pass_field. Now, imagine that through an htm form you got the username on a var called $user and the password on a var called $passcode, both of them were sent via POST to your PHP file. (Please let me know if you need further help with the database or the html form).
Now this would be the PHP code to get the info provided by the user, then connect to the database and finally validate both, username and passcode.
extract($_POST);
mysql_connect('host' , 'user' , 'password');
mysql_select_db('database');
$dbTable=mysql_query("SELECT * FROM table WHERE user_field='$user' AND pass_field='$passcode'");
$resultantRow=mysql_fetch_array($dbTable);
if (mysql_num_rows($consultantArray) == 0) { //this line is to validate if the results are 0, failed
}
else { //if there was any then it will go down to this part, it went through
}