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

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and Example of PHP odbc_close () Function

PHP ODBC Reference Manual

The odbc_close() function closes an ODBC connection.

Syntax

void odbc_close ( resource $connection_id )

Definition and Usage

Close the connection with the database server.

Return Value

No value returned

Parameter

Serial NumberParameters and Description
1

connection_id

It contains connection ID information

Online Example

Try the following example, odbc_close closes the connection opened by odbc_open

<?php
   $input_ID = odbc_open("w3codebox","user","pass");
   odbc_close($input_ID);
?>

PHP ODBC Reference Manual