dbase_numfields

(PHP 3, PHP 4 , PHP 5)

dbase_numfields --  Find out how many fields are in a dBase database

Description

int dbase_numfields ( int dbase_identifier)

Returns the number of fields (columns) in the specified database. Field numbers are between 0 and dbase_numfields($db)-1, while record numbers are between 1 and dbase_numrecords($db).

Example 1. Using dbase_numfields()

<?php

$rec
= dbase_get_record($db, $recno);
$nf  = dbase_numfields($db);
for (
$i=0; $i < $nf; $i++) {
    echo
$rec[$i]."<br />\n";
}

?>


Sites of interest: Web Hosting : Reseller Hosting : Website Hosting : HTML Editor : Web Design Templates : Free Web Hosting : ASP code examples : PHP & MySQL Code Examples
  Copyright © 2004 Evrsoft Developer Network. Privacy policy - Link to Us

Contact Evrsoft