English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The odbc_columns() function lists the column names in the specified table.
resource odbc_columns ( resource $connection_id[, string $qualifier[, string $schema[, string $table_name[, string $column_name]]]] )
It already contains a list of column names in the specified table
It returns an odbc result identifier, otherwise it returns false.
Number | Description |
---|---|
1 | connection_id It contains connection ID information |
2 | qualifier It contains information about the qualifier |
3 | schema It contains information about the owner |
4 | table_name It contains information about the table name |
5 | column_name It contains information about the column_name parameter |
Try the following example
<?php include('header.php'); $outval = odbc_columns($connection, "Db_name", "%", "table_name", "%"); $pages = array(); while (odbc_fetch_into($outval, $pages)) { echo $pages[3] . "<br />\n"; } ?>