cubrid_field_name

(PECL CUBRID >= 8.3.0)

cubrid_field_nameReturns the name of the specified field index

Description

string cubrid_field_name ( resource $req_identifier , int $field_offset )

This function returns the name of the specified field index on success or it returns FALSE on failure.

Parameters

req_identifier

This is the request identifier.

field_offset

The numerical field offset. The field_offset starts at 0. If field_offset does not exist, an error of level E_WARNING is also issued.

Return Values

Name of specified field index, on success.

FALSE on failure.

Examples

Example #1 cubrid_field_name() example

<?php
    $link 
cubrid_connect("localhost"30000"demodb2""dba""");
    if (!
$link)
    {
        die(
'Could not connect.');
    }
    
$query 'SELECT id, name, address, salary FROM employees';
    
$result cubrid_execute($link$query);
    if (
$result
    {
        echo 
cubrid_field_name($result0)."<BR>";
        echo 
cubrid_field_name($result2);
        
        
cubrid_close_request($result); 
    }
?>

The above example will output:

Result:
id
address

Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout