Location: PHPKode > scripts > httpAuth > httpauth/sqlexample.php
<?
	require("auth.httpAuth.php");
	$test = new httpAuth($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'],"mysql","sqltable");
	$test->dbAuth("sqluser", "sqlpass", "localhost", "sqlDB");
	if($test->login() == true) {
		echo "Success!";
	} else {
		echo "Failure!";
	}
?> 
Return current item: httpAuth