Subversion Repositories phpLibraryV2

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

<?php
   require_once( "DBQuery.class.php" );
   
   class DBAudit {
      public $databaseTableName;
      public $databaseColumnField;
      
      public function __construct( $databaseTableName = '' ) {
         $this->databaseTableName = $databaseTableName;
      }
      
      public function log( $string ) {
         if ( $databaseTableName ) {
            $q = new DBQuery( "insert into $databaseTableName ( $databaseColumnField ) values (" . new DBColumn( 'dummy' )->makeSafeSQLValue( $string ) , ')')->run();
         }
      }
   }
?>