www.DNameTrade.com - the domain names for everybody: ".com", ".net", ".org" and ".info" - $11/year, ".us" and ".biz" - $10/year, ".ws" - $16/year. Also, the domain names ".cc", ".tv", ".be", ".jp" and more... Special Domain Names Transfer Pricing...
           
  Affordable Business Hosting

CPanel Login


Support
FAQ
Forums
HelpDesk
E-mail
Docs
Statistics
Network
Goodies
Free Trial!
Custom Plan!
Useful Links


 

dbase_numfields

(PHP 3, PHP 4 )

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";
}

?>



 
  © 2004-2008 Hosting To Business (Hosting2B). Service Line, Inc.
2Checkout.com, Inc. is an authorized retailer of Hosting2B.com