Query: cubrid_num_cols
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CUBRID_NUM_COLS(3) 1 CUBRID_NUM_COLS(3) cubrid_num_cols - Return the number of columns in the result setSYNOPSISint cubrid_num_cols (resource $result)DESCRIPTIONThe cubrid_num_cols(3) function is used to get the number of columns from the query result. It can only be used when the query executed is a select statement.PARAMETERSo $result -Result.RETURN VALUESNumber of columns, when process is successful. FALSE, if SQL statement is not SELECT.EXAMPLESExample #1 cubrid_num_cols(3) example <?php $conn = cubrid_connect("localhost", 33000, "demodb", "dba"); $req = cubrid_execute($conn, "SELECT * FROM code"); $row_num = cubrid_num_rows($req); $col_num = cubrid_num_cols($req); printf("Row Num: %d Column Num: %d ", $row_num, $col_num); cubrid_disconnect($conn); ?> The above example will output: Row Num: 6 Column Num: 2SEE ALSOcubrid_execute(3), cubrid_num_rows(3). PHP Documentation Group CUBRID_NUM_COLS(3)
Related Man Pages |
---|
cubrid_prepare(3) - php |
cubrid_num_rows(3) - php |
cubrid_drop(3) - php |
cubrid_field_flags(3) - php |
cubrid_lock_write(3) - php |
Similar Topics in the Unix Linux Community |
---|
If statement not working |
Column query |
How do I parse file with multiple different columns ? |
Output Row if Third Column is Larger |
Generating file from sqlplus |