~clinton-collins/familyproject/trunk

« back to all changes in this revision

Viewing changes to xampp/special/paradox/020.phpt

  • Committer: Clinton Collins
  • Date: 2009-06-26 19:54:58 UTC
  • Revision ID: clinton.collins@gmail.com-20090626195458-5ebba0qcvo15xlpy
Initial Import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Insert Auto increment fields
 
3
--SKIPIF--
 
4
<?php if (!extension_loaded("paradox")) print "skip"; ?>
 
5
--POST--
 
6
--GET--
 
7
--INI--
 
8
--FILE--
 
9
<?php 
 
10
$dirname = dirname($_SERVER["SCRIPT_FILENAME"]);
 
11
$fp = fopen($dirname."/px020.db", "w+");
 
12
$pxdoc = new paradox_db();
 
13
$fields = array(array("col1", "+"));
 
14
$pxdoc->create_fp($fp, $fields);
 
15
$pxdoc->set_tablename("testtabelle");
 
16
for($i=-3; $i<=3; $i++) {
 
17
        $pxdoc->insert_record(array(NULL));
 
18
}
 
19
print_r($pxdoc->retrieve_record(5));
 
20
$pxdoc->close();
 
21
fclose($fp);
 
22
unlink($dirname."/px020.db");
 
23
?>
 
24
--EXPECT--
 
25
Array
 
26
(
 
27
    [col1] => 6
 
28
)
 
29