home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 August
/
PCWorld_2001-08_cd.bin
/
Komunikace
/
phptriad
/
phptriadsetup2-11.exe
/
php
/
pear
/
DB
/
tests
/
sequences.inc
< prev
next >
Wrap
Text File
|
2000-12-13
|
419b
|
21 lines
<?php
$dbh->dropSequence("test");
$e = $dbh->nextId("test", false);
if (DB::isError($e)) {
print $e->getMessage() . "\n";
}
$a = $dbh->nextId("test");
$b = $dbh->nextId("test");
if (DB::isError($a)) {
print "a: ".$a->getMessage()."\n";
} else {
print "a=$a\n";
}
if (DB::isError($b)) {
print "b: ".$b->getMessage()."\n";
} else {
print "b=$b\n";
}
$dbh->dropSequence("test");
?>