PHP Doku:: Returns a numerical array with the values of the current row - function.cubrid-fetch-row.html

Verlauf / Chronik / History: (2) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Datenbankerweiterungen ≥ Anbieterspezifische Datenbankerweiterungen ≥ Cubrid ≥ Cubrid Funktionen ≥ cubrid_fetch_row

Ein Service von Reinhard Neidl - Webprogrammierung.

Cubrid Funktionen

<<cubrid_fetch_object

cubrid_fetch>>

cubrid_fetch_row

(PECL CUBRID >= 8.3.0)

cubrid_fetch_row — Returns a numerical array with the values of the current row

Beschreibung

array cubrid_fetch_row ( resource $req_identifier )

This function returns a numerical array with the values of the current row from the result set, starting from 0.

Parameter-Liste

req_identifier

This is the request identifier.

Rückgabewerte

A numerical array, when process is successful.

FALSE on failure.

Beispiele

Beispiel #1 cubrid_fetch_row() example

<?php
    $link 
= cubrid_connect("localhost", 30000, "demodb2", "dba", "");
    if (!
$link)
    {
        die(
'Could not connect.');
    }
    
$query = 'SELECT name, address, salary FROM employees';
    
$result = cubrid_execute($link, $query);
    if (
$result) 
    {
        
$row = cubrid_fetch_row($result);
        echo 
$row[0]."<BR>".$row[1]."<BR>".$row[2]."<BR>";

        
cubrid_close_request($result); 
    }
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

Result:
Peter
1st Avenue, New York
1000.0000000000000000


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)