Returns the value of a specific connection string setting for a connection.
Syntax
edb_connset(<ConnectionHandle>,<Keyword>)
<ConnectionHandle> =
Handle of connection returned by edb_connect function
<Keyword> = Connection string keyword
Returns
The value of the connection string setting (STRING) if
successful, or FALSE if any errors
UsageThe edb_connset function returns the value of a given connection setting used in the connection string and the edb_connect function.
Examples
<?php
// The following script connects to a local
// ElevateDB configuration and database, displays
// the configuration path using the edb_connset()
// function, and then disconnects using the edb_disconnect()
// function
$con = edb_connect("type=local;charset=Ansi;configpath=C:\\Tutorial;"+
"uid=Administrator;pwd=EDBDefault;database=Tutorial");
if (!$con)
{
die("Could not connect: " . edb_errmsg());
}
echo edb_connset($con,"configpath");
edb_disconnect($con);
?>