2000-08-27 19:46:06 +00:00
|
|
|
--TEST--
|
|
|
|
DBM Multiple Insert/Fetch Test
|
2000-10-23 07:40:05 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php if (!extension_loaded("db")) print "skip"; ?>
|
2000-08-27 19:46:06 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2002-10-22 18:40:30 +00:00
|
|
|
require_once('test.inc');
|
|
|
|
if (dbmopen($db_file, "n")) {
|
|
|
|
dbminsert($db_file, "key1", "Content String 1");
|
|
|
|
dbminsert($db_file, "key2", "Content String 2");
|
|
|
|
dbminsert($db_file, "key3", "Third Content String");
|
|
|
|
dbminsert($db_file, "key4", "Another Content String");
|
|
|
|
dbminsert($db_file, "key5", "The last content string");
|
|
|
|
$a = dbmfetch($db_file, "key4");
|
|
|
|
$b = dbmfetch($db_file, "key2");
|
|
|
|
dbmclose($db_file);
|
|
|
|
echo "$a $b";
|
|
|
|
} else {
|
|
|
|
echo "Error creating database\n";
|
|
|
|
}
|
2000-08-27 19:46:06 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
Another Content String Content String 2
|