Re: How to show specific records of a Dbase file
| From: | Hugh Bothwell | Date: | Sun, 26 Aug 2001 20:05:36 +0000 |
| Subject: | Re: How to show specific records of a Dbase file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64537@lists.php.net to get a copy of this message | ||
"Er GalvãO Abbott" <erabbott@DONTSPAMterra.com.br> wrote in message
news:3b892a4e.2765570@news.php.net...
> foreach ($drec as $nome)
> {
> echo "$nome<br>";
> }
> But I'm trying (unsucessfully) to show only one or two fields of each
> records..
Instead of foreach(), try something like
echo $drec[0].", ".$drec[1];
(or whichever records it is you want).
Note: in the PHP documentation, they specifically
suggest abandoning DBase for any of the free
SQL databases (MySQL, PostgreSQL, etc).