CUBRID Функции
PHP Manual

cubrid_fetch_row

(PECL CUBRID >= 8.3.0)

cubrid_fetch_rowReturns a numerical array with the values of the current row

Описание

array cubrid_fetch_row ( resource $result )

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

Список параметров

result

result comes from a call to cubrid_execute()

Возвращаемые значения

A numerical array, when process is successful.

FALSE on failure.

Примеры

Пример #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); 
    }
?>

Результат выполнения данного примера:

Result:
Peter
1st Avenue, New York
1000.0000000000000000


CUBRID Функции
PHP Manual