Login   Register  
PHP Classes
elePHPant
Icontem

File: crypt.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ruthger  >  textDB  >  crypt.php  >  Download  
File: crypt.php
Role: Example script
Content type: text/plain
Description: Exemple crypting data
Class: textDB
A database class using csv files
Author: By
Last change:
Date: 12 years ago
Size: 595 bytes
 

Contents

Class file image Download
Crypt example....

Insert a record...<br>
<?
  
include("textdb.php");
  
  
$test = New textDB("test_crypt.txt""fe54ksdfk");
  
  
$record $test->first();
  while (
$record)
  {
    echo 
$record[id]." ".$record[label]." ".$record[text]."<br>";
    
$record $test->next();
  }

  
$record[id]    = 12;
  
$record[label] = "c54332";
  
$record[text]  = "If this works";

  
$test->insert($record);      

  
$record $test->first();
  while (
$record)
  {
    echo 
"Result : ".$record[id]." ".$record[label]." ".$record[text]."<br>";
    
$record $test->next();
  }

?>