PHP - Function columns
Syntax
resource odbc_columns ( resource $connection_id [, string $qualifier [, string $schema [, string $table_name [, string $column_name ]]]] )
Definition and Usage
It has contained the list coloumn names in specified table
Return Values
It returns an odbc result identifier or else false on failure.
Parameters
| Sr.No | Description |
|---|---|
| 1 |
connection_id it contains connection id information |
| 2 |
qualifier It contained information about qualifier |
| 3 |
schema It contained information about owner |
| 4 |
table_name It contained information about table name |
| 5 |
column_name It contained information about column_name arguments |
Examples
Try out 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";
}
?>
php_function_reference.htm
Advertisements