"Not too long ago," writes R.S., "a coworker left the company for greener pastures. His motto was Keep It Simple and, until now, I wasn't sure how simple he liked things."

"This is one of my favorite snippets of PHP code from his own, unique authentication process."

$password = $_POST['password'];

$sql  = "Select username from USERS";
$q->query($sql);
while($q->next_record())
{
    $chumbawumba = $q->f("username");
}

if ($password == $chumbawumba)
{
    header("Location: index.php?session=".$session); 
}
else 
{
    $errorMsg = "Wrong Password. Please Try again!";
}

R.S. added, "the USERS table contained a single column ('username') and a single row." Simple indeed.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!