The cubrid_num_cols() and cubrid_num_fields() functions are used interchangeably and they gets the number of columns in the query result. This is available only with the SELECT statement.
int cubrid_num_cols (resource $req_identifier)
int cubrid_num_fields (resource $req_identifier)
$req = cubrid_execute ($con, "select * from member");
if ($req) {
$rows_count = cubrid_num_rows ($req);
$cols_count = cubrid_num_cols ($req);
echo "result set rows count : $rows\n";
echo "result set columns count : $cols\n";
cubrid_close_request ($req);
}