2
Inserting records with memo fields
4
<?php if (!extension_loaded("paradox")) print "skip"; ?>
10
$dirname = dirname($_SERVER["SCRIPT_FILENAME"]);
11
$fp = fopen($dirname."/px018.db", "w+");
12
$pxdoc = new paradox_db();
13
$fields = array(array("col1", "M", 20));
14
@$pxdoc->create_fp($fp, $fields);
15
$pxdoc->set_blob_file($dirname."/px018.mb");
16
$pxdoc->set_tablename("testtabelle");
17
$str1 = "Some text long enough to go into a blob file";
19
for($i=0; $i<=3; $i++) {
20
$pxdoc->insert_record(array($str1));
22
for($i=0; $i<=3; $i++) {
23
$pxdoc->insert_record(array($str2));
25
for($i=0; $i<=3; $i++) {
26
$pxdoc->insert_record(array(NULL));
28
print_r($pxdoc->retrieve_record(1));
29
print_r($pxdoc->retrieve_record(4));
30
$rec = $pxdoc->retrieve_record(9);
31
if(is_null($rec["col1"])) {
36
unlink($dirname."/px018.mb");
37
unlink($dirname."/px018.db");
42
[col1] => Some text long enough to go into a blob file