Looks like Jacky is using some DB object? I don't know if it's native to PHP or written on it's own... Anyways this is what I use:
$DBCon = dba_open("/tmp/test_db.db2", "r", "db2") or die("Uh oh, can't open the database :(");
if ($the_key = dba_firstkey($DBCon)) do {
print("Key: $the_key Value:");
print dba_fetch($the_key, $DBCon);
print("<BR>");
} while ($the_key = dba_nextkey($DBCon));
print ("<BR><BR><BR>Well looks like we're done here :-)");
dba_firstkey
(PHP 4, PHP 5)
dba_firstkey — Recuperar la primera clave
Descripción
string dba_firstkey
( resource $gestor
)
dba_firstkey() devuelve la primera clave de la base de datos y reestablece el apuntador de clave interno. Esto permite una búsqueda lineal a través de la base de datos completa.
Valores retornados
Devuelve la clave en caso de tener éxito, o FALSE de lo contrario.
dba_firstkey
psycho-logic at excite dot com
22-Oct-2003 02:38
22-Oct-2003 02:38
jacky dot jackyhung dot net
17-Jan-2002 02:17
17-Jan-2002 02:17
for ($key = dba_firstkey($this->handle); $key !== false; $key = dba_nextkey($this->handle)) {
$keyset[] = $key;
} // end for
