PHP Classes

File: test3.php

Recommend this page to a friend!
  Classes of Ruthger   textDB   test3.php   Download  
File: test3.php
Role: Example script
Content type: text/plain
Description: Test file
Class: textDB
A database class using csv files
Author: By
Last change:
Date: 21 years ago
Size: 487 bytes
 

Contents

Class file image Download
<?
 
include("textdb.php");
 
 
$test = New textDB("test.txt", 1);
?>
Vers ingelezen<br>
<?
  $record
= $test->first();
  while (
$record)
  {
    echo
$record[id]." ".$record[label]." ".$record[text]."<br>";
   
$record = $test->next();
  }
?>
<br><br>Filtered<br>
<?
  $test
->filter("id > 5 and id <11");
 
 
$record = $test->first();
  while (
$record)
  {
    echo
$record[id]." ".$record[label]." ".$record[text]."<br>";
   
$record = $test->next();
  }
?>