Cubrid Functions
PHP Manual

cubrid_column_names

(PHP 4, PHP 5)

cubrid_column_namesIs used to get the column names

Description

mixed cubrid_column_names ( int $req_handle )

The cubrid_column_names() function is used to get the column names of the query result by using req_handle.

Parameters

req_handle

Request handle.

Return Values

array containing column names, when process is successful.

FALSE, when process is unsuccessful.

Examples

Example #1 cubrid_column_names() example

<?php
$req 
cubrid_execute ($con"select * from person");
if (
$req) {
   
$coltypes cubrid_column_types ($req);
   
$colnames cubrid_column_names ($req);
   while (list (
$key$coltype) = each ($coltypes))
      echo 
$coltype;
   while (list (
$key$colname) = each ($colnames))
      echo 
$colname;
   
cubrid_close_request ($req);
}
?>

See Also


Cubrid Functions
PHP Manual