Connecting web application to database

hey friends, can anyone help me to build a login form and connect it to the database