cubrid_result(3) php man page | unix.com

Man Page: cubrid_result

Operating Environment: php

Section: 3

CUBRID_RESULT(3)							 1							  CUBRID_RESULT(3)

cubrid_result - Return the value of a specific field in a specific row

SYNOPSIS
string cubrid_result (resource $result, int $row, [mixed $field])
DESCRIPTION
This function returns the value of a specific field in a specific row from a result set.
PARAMETERS
o $result -$result comes from a call to cubrid_execute(3) o $row -The row number from the result that is being retrieved. Row numbers start at 0. o $field - The name or offset of the $field being retrieved. It can be the field's offset, the field's name, or the field's table dot field name (tablename.fieldname). If the column name has been aliased ('select foo as bar from...'), use the alias instead of the column name. If undefined, the first field is retrieved.
RETURN VALUES
Value of a specific field, on success (NULL if value if null). FALSE on failure.
EXAMPLES
Example #1 cubrid_result(3) example <?php $conn = cubrid_connect("localhost", 33000, "demodb"); $req = cubrid_execute($conn, "SELECT * FROM code"); $result = cubrid_result($req, 0); var_dump($result); $result = cubrid_result($req, 0, 1); var_dump($result); $result = cubrid_result($req, 5, "f_name"); var_dump($result); cubrid_close_request($req); cubrid_disconnect($conn); ?> The above example will output: string(1) "X" string(5) "Mixed" string(4) "Gold" PHP Documentation Group CUBRID_RESULT(3)
Related Man Pages
cubrid_fetch_lengths(3) - php
cubrid_field_table(3) - php
cubrid_field_type(3) - php
cubrid_get(3) - php
cubrid_move_cursor(3) - php
Similar Topics in the Unix Linux Community
need help with replacing a certain field...
Extract data into file with specific field specs
To find the Row number
substitute a string on a specific position for specific lines
Print particular string in a field of csv file