PHP MySQL Login - A simple and short PHP tutorial and complete reference $sql = "SELECT id FROM admin WHERE username = '$myusername' and .