PHP Classes

File: Examples/DCL.php

Recommend this page to a friend!
  Classes of Mohamed Elbahja   The PDM   Examples/DCL.php   Download  
File: Examples/DCL.php
Role: Example script
Content type: text/plain
Description: Example script
Class: The PDM
Run queries and manage tables with PDO or MySQLi
Author: By
Last change:
Date: 7 years ago
Size: 386 bytes
 

Contents

Class file image Download
<?php

/**
 * require autoloader
 */
require_once('../autoload.php');


$pdm = PDM\PDM::getInstance();

/**
 * load command
 */
$dcl = $pdm->load('DCL', 'mysqli');

/**
 * start db connection
 */
$dcl->start();


/**
 * grant
 */

// if ($dcl->grant('SELECT, UPDATE....') === true) {

// //true
// }


/**
 * REVOKE
 */

// if ($dcl->revoke('ALTER, DROP ....')) {

// // true
// }