downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

cubrid_fetch_row> <cubrid_fetch_lengths
Last updated: Fri, 24 Sep 2010

view this page in

cubrid_fetch_object

(PECL CUBRID >= 8.3.0)

cubrid_fetch_objectReturns an object with the column names

Description

object cubrid_fetch_object ( resource $req_identifier )

This function returns an object with the column names of the result set as properties. The values of these properties are extracted from the current row of the result.

Parameters

req_identifier

This is the request identifier.

Return Values

An object, when process is successful.

FALSE on failure.

Examples

Example #1 cubrid_fetch_object() 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_object($result);
        echo 
$row->name."<BR>";
        echo 
$row->address."<BR>";
        echo 
$row->salary;
        
        
cubrid_close_request($result); 
    }
?>

The above example will output:

Result:
Peter
1st Avenue, New York
1000.0000000000000000


add a note add a note User Contributed Notes
cubrid_fetch_object
There are no user contributed notes for this page.

cubrid_fetch_row> <cubrid_fetch_lengths
Last updated: Fri, 24 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites