How to show specific records of a Dbase file
| From: | (Er Galv�o Abbott) | Date: | Sun, 26 Aug 2001 17:51:17 +0000 |
| Subject: | How to show specific records of a Dbase file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-64527@lists.php.net to get a copy of this message | ||
Greetings.
I've made the following script, wich shows every record of a dbf file:
<?php
$dbf = dbase_open('TEST.DBF',0);
$quant = dbase_numrecords ($dbf);
for ($x = 1; $x < $quant; $x++)
{
$drec = dbase_get_record_with_names($dbf,$x);
foreach ($drec as $nome)
{
echo "$nome<br>";
}
}
echo "Done. $quant records."
?>
But I'm trying (unsucessfully) to show only one or two fields of each
records..
Anyone can help me with this?
Thanks in advance,
Er Galvão Abbott
erabbott@DONTSPAMterra.com.br
---------------------------------
Feel free to reply me by e-mail.
Just remove the CAPITAL TEXT from
the address above.
---------------------------------