Login   Register  
PHP Classes
elePHPant
Icontem

File: sqlexample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 5 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!";
    }
?>