Welcome Guest, Not a member yet? Register   Sign In
continuous db connection
#1

[eluser]mertcakmak[/eluser]
Hi,

i have a problem with network. but i need a new oracle db configuration. it must be try connect to db when connection failed. i have used this code in "database/drivers/oci/oci8_driver.php"

function db_connect()
{
$i = 0;
if ((!$conn) && ($i<100)) {
$i++;
@$conn = ocilogon($this->username, $this->password, $this->hostname);
}
return $conn;
}

how can i make continuous db connection ?
thanks




Theme © iAndrew 2016 - Forum software by © MyBB