Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with dmbfetch

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hi!!

I'm trying to visualize a .dbm file. It's hosted
in the same directory as my .php file.

With this test example:

-------------//---------------------------
<html><head><title>PHP Test</title></head>
<body>
<?php

$fn=&quot;myfile.mdb&quot;;
$db=dbmopen($fn,&quot;r&quot;);

$key = dbmfirstkey ($db);
while ($key) {
echo &quot;$key = &quot; . dbmfetch ($db, $key) . &quot;\n&quot;;
$key = dbmnextkey ($db, $key);
}

dbmclose($db);

?>
</body></html>
---------//--------------------------

I do not get anything.

Could anybody provide me an example of using DBM?

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top