Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
English Site | German Site 

 Web Hosting

 Virtual Dedicated Servers

 Chequeo de dominio

 Haga su pedido

 Estado del pedido

 Support

 Contáctenos

 Download

 Network

 Network Status

 Webdesign / Templates

 Efectuar pago

 Terms & Conditions

 Imprimir

 Notas Legales

 Declaración de Privacidad
  PHP / ibase_num_fields
ibase_num_fields

ibase_num_fields

(PHP 3>= 3.0.7, PHP 4 )

ibase_num_fields --  Ermittelt die Anzahl der Felder einer Ergebnis-Liste

Beschreibung:

int ibase_num_fields ( int result_id)

Der zurück gegebene Integer-Wert stellt die Anzahl der Felder einer Ergebnis-Liste dar.

<?php
    $dbh = ibase_connect ($host, $username, $password);
    $stmt = 'SELECT * FROM tblname';
    $sth = ibase_query ($dbh, $stmt);

    if (ibase_num_fields($sth) > 0) {
        while ($row = ibase_fetch_object ($sth)) {
            print $row->email . "\n";
        }
    } else {
        die ("Keine Ergebnisse für ihre Abfrage");
    }

    ibase_close ($dbh);
?>

Siehe auch: ibase_field_info().

Anmerkung: ibase_num_fields() funktioniert z.Zt. nicht bei PHP 4.


© 1998-2007 Gold Vision Communications All Rights Reserved.