MS Access

wxdqz

New Member
I am very new to PHP. I have been building in ASP for some time now and most of my database applications run on Access.

What is wrong with this code that should just get the information from the database and write it into a table?

'----------------------Code------------------
<table cellpadding="5" border="1">
<?php
$dbh = dbmopen( "/databases/officelist.mdb", "r" ) or die ( "Couldn't open DBM" );

$key = dmbfirstkey( $dbm );

While ($key != "" )
{
$value = dbmfetch( $dbh, $key )
print "<tr><td> $key </td>";
print "<td align="right"> \$$value </td></tr>";
$key = dbmnextkey ( $dbh, $key );
}
dbmclose( #dbh );
?>
</table>
 
Back
Top