Query: cubrid_field_seek
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CUBRID_FIELD_SEEK(3) 1 CUBRID_FIELD_SEEK(3) cubrid_field_seek - Move the result set cursor to the specified field offsetSYNOPSISbool cubrid_field_seek (resource $result, [int $field_offset])DESCRIPTIONThis function moves the result set cursor to the specified field offset. This offset is used by cubrid_fetch_field(3) if it doesn't include a field offset. It returns TRUE on success or FALSE on failure.PARAMETERSo $result -$result comes from a call to cubrid_execute(3) o $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 VALUESTRUE on success. FALSE on failure.EXAMPLESExample #1 cubrid_field_seek(3) example <?php $conn = cubrid_connect("localhost", 33000, "demodb"); $req = cubrid_execute($conn, "SELECT event_code,athlete_code,nation_code,game_date FROM game WHERE host_year=1988 and event_code=20001;"); var_dump(cubrid_fetch_row($req)); cubrid_field_seek($req, 1); $field = cubrid_fetch_field($req); printf(" --- Field Properties --- "); printf("%-30s %s ", "name:", $field->name); printf("%-30s %s ", "table:", $field->table); printf("%-30s "%s" ", "default value:", $field->def); printf("%-30s %d ", "max length:", $field->max_length); printf("%-30s %d ", "not null:", $field->not_null); printf("%-30s %d ", "unique key:", $field->unique_key); printf("%-30s %d ", "multiple key:", $field->multiple_key); printf("%-30s %d ", "numeric:", $field->numeric); printf("%-30s %s ", "type:", $field->type); cubrid_close_request($req); cubrid_disconnect($conn); ?> The above example will output: array(4) { [0]=> string(5) "20001" [1]=> string(5) "16132" [2]=> string(3) "KOR" [3]=> string(9) "1988-09-30" } --- Field Properties --- name: athlete_code table: game default value: "" max length: 0 not null: 1 unique key: 1 multiple key: 0 numeric: 1 type: integer PHP Documentation Group CUBRID_FIELD_SEEK(3)
Related Man Pages |
---|
cubrid_next_result(3) - php |
cubrid_field_seek(3) - php |
cubrid_drop(3) - php |
cubrid_get_client_info(3) - php |
cubrid_get_server_info(3) - php |
Similar Topics in the Unix Linux Community |
---|
AwK printf question |
Awk variable replacement |
Problem with "printf" |
Explanation for printf string in awk |
Find max length of the field and then replace zero |