ads_close

Advantage PHP Extension

  Previous topic Next topic  

Closes a connection to the Advantage Database Server.

Syntax

void ads_close( int connection_id )

Parameters

connection_id (I)

ID of a connection to the Advantage Database Server.

Remarks

ads_close is used to close a connection to the specified server. If ads_close is called on a connection with a transaction active, the transaction will be rolled back and then the connection closed.

Example

<?php

echo "Basic Connect<br>\n";

$rConn = ads_connect( "DataDirectory=\\\\server1\\share1\\data\\;ServerTypes=2", "", "" );

echo "Connect<br>\n";

ads_close( $rConn );

echo "Closed<br>\n";

?>

See Also

ads_close_all

ads_connect