这是一个连接和简单选择的示例...
open($connstr); $rS = $db_conn->execute("SELECT * FROM Employees"); $f1 = $rS->Fields(0); $f2 = $rS->Fields(1); while (!$rS->EOF) { print $f1->value." ".$f2->value."\n"; $rS->MoveNext(); } $rS->Close(); $db_conn->Close(); ?>