Login using php/mysql api

I am on the loo out for a php/mysql api login and redirects to home if information are correct…