PHP Classes

File: test_audit_queries_plugin.php

Recommend this page to a friend!
  Classes of Manuel Lemos   Metabase   test_audit_queries_plugin.php   Download  
File: test_audit_queries_plugin.php
Role: Auxiliary script
Content type: text/plain
Description: Example script to show how to perform auditing operations on SQL queries that execute
Class: Metabase
PHP Database abstraction layer RDBMS independent
Author: By
Last change:
Date: 2 years ago
Size: 709 bytes
 

Contents

Class file image Download
<?php
/*
 * test_audit_queries_plugin.php
 *
 * @(#) $Id: test_audit_queries_plugin.php,v 1.1 2021/10/12 11:25:56 mlemos Exp $
 *
 */

   
require("metabase_database.php");
    require(
"metabase_interface.php");

Function
Output($message)
{
    echo
$message,"\n";
}

   
$arguments = require('configuration.php');
   
$error = MetabaseSetupDatabase($arguments, $database);
    if(
$error != '')
    {
        echo
"Database setup error: ", $error, "\n";
    }
    else
    {
        if(!
MetabaseQueryAll($database, "SELECT id, user_name, user_password, reminder, name, email FROM users", $result))
        {
            echo
"Database query error: ", MetabaseError($database), "\n";
        }
        echo
MetabaseDebugOutput($database);
       
MetabaseCloseSetup($database);
    }

?>