This tutorial demonstrates how to create a login page with MySQL Data base. admin WHERE username = '$myusername' and passcode = '$mypassword'"; .