PHP Classes

File: Demo

Recommend this page to a friend!
  Classes of Tim Rijavec   MySQL Access   Demo   Download  
File: Demo
Role: Example script
Content type: text/plain
Description: Example script
Class: MySQL Access
MySQL database access wrapper
Author: By
Last change:
Date: 15 years ago
Size: 288 bytes
 

Contents

Class file image Download
<?php

include( 'mysqlAccess.php' );

$Query = new MysqlQuery();
$QueryString = "SELECT User FROM mysql.user";
if(
0 != strcmp( $Query->error, '' ) | true != $Query->Execute( $QueryString ) ) die( $Query->error );

while(
$a = $Query->FetchNextRow() ) {
    echo
$a['User'] . "<br>";
}
?>