PHP Classes

File: sqlexample.php

Recommend this page to a friend!
  Classes of Zsolt Munoz   httpAuth   sqlexample.php   Download  
File: sqlexample.php
Role: Example script
Content type: text/plain
Description: Example Using MySQL
Class: httpAuth
Authenticate users in several ways
Author: By
Last change:
Date: 16 years ago
Size: 280 bytes
 

Contents

Class file image Download
<?
   
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!";
    }
?>