I. Na początek
II.Instalacja i konfiguracja
III. Opis języka
IV. Bezpieczeństwo
V. Możliwości
VI. Opis funkcji
VII. Zend API
VIII. PHP API: Interfejs rozszerzeń
X. Dodatki

Manual PHP

Zapraszam do korzystania z zamieszczonego przeze mnie manuala php. Mam nadzieję, że ta jego kopia przyda się zarówno profesjonalnym programistą, jak i początkującym twórcą skryptów PHP.

Autorzy

Mehdi Achour,
Friedhelm Betz,
Antony Dovgal,
Nuno Lopes,
Philip Olson,
Georg Richter,
Damien Seguy,
Jakub Vrana,
I kilka innych

Redakcja:

Gabor Hojtsy,
Marcin Dąbrowski, Michał Grzechowiak, Leszek Krupiński, Adam Major, Paweł Paprota, Michał Pena, Sławomir Pucia, Jarek Tabor, Tomasz Wójtowicz,

dbase_numrecords

(PHP 3, PHP 4, PHP 5)

dbase_numrecords -- Gets the number of records in a database

Opis

int dbase_numrecords ( int dbase_identifier )

Gets the number of records (rows) in the specified database.

Notatka: Record numbers are between 1 and dbase_numrecords($db), while field numbers are between 0 and dbase_numfields($db)-1.

Parametry

dbase_identifier

The database link identifier, returned by dbase_open() or dbase_create().

Zwracane wartości

The number of records in the database, or FALSE if an error occurs.

Przykłady

Przykład 1. Looping over all the records of the database

<?php

// open in read-only mode
$db = dbase_open('/tmp/test.dbf', 0);

if (
$db) {
  
$record_numbers = dbase_numrecords($db);
  for (
$i = 1; $i <= $record_numbers; $i++) {
      
// do something here, for each record
  
}
}

?>

Patrz także

dbase_num_fields()


print 'Kształtki 1171501896' . "\n"; print 'hestia 1171501665' . "\n"; print 'shell polska 1171501596' . "\n"; print 'Zakładanie ogrodów 1171501809' . "\n"; print 'Nauka jazdy Dąbrowa Górnicza 1171501732' . "\n";