English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

PHP odbc_tableprivileges() Function Usage and Example

PHP ODBC Reference Manual

The odbc_tableprivileges() function is used to list tables and the permissions associated with each table

Syntax

resource odbc_tableprivileges ( resource $connection_id , 
   string $qualifier, string $owner, string $name)

Definition and Usage

Lists the tables within the requested range and the permissions associated with each table.

Return Value

Returns an odbc result identifier on success, otherwise returns false

Parameter

NumberParameters and Description
1

connection_id

It contains information about the connection identifier

2

qualifier

It contains information about the qualifier

3

owner

It contains information about the owner

4

name

It contains information about the table name

Example

Try the following example

<?php
   $input_ID = odbc_connect("DSN", "user_id", "pass_id");
   $result = odbc_tableprivileges($input_ID, "Northwind", "dbo", "Employees");
   
   odbc_result_all($result)
 ?>

PHP ODBC Reference Manual