i wrote a code to fetch the records from a dbf file. but
i do not know how to specify my query. can anyone pls help me in doing this. the code is below. if possible pls mail me at
roshansk@shafika.vetri.com
<?
$dbh = dbase_open('wlpdnprv.dbf', READ_ONLY) or
die("Could not open '/data/mdata/nhpn.dbf' for read.");
$num_fields = dbase_numfields ($dbh);
$num_rows = dbase_numrecords($dbh);
print "<pre>";
for ($i=1; $i <= 10; $i++)
{
$row = dbase_get_record($dbh, $i);
printf("%7d: %s\n", $i, join("|", $row));
}
print "</pre>";
dbase_close($dbh);
?>