Database conneectivity in php and html : I have some doubts about connecting the data base
1.how do i connect the PHP file with database(php my admin)?
2.what code should i give to check the correct and incorrect passwords?
3.how do i connect the database with my html page?

actually i had tried a lot of programs to connect them,But in vain.
I have completed the layouts.Just the database connectivity is pending.

[this is the code i have done.Please see the image][1]


  [1]: https://i.stack.imgur.com/NNnBO.jpg