You are not logged in.
Do i need to call
dibi::disconnect();
at the end of every page or is that done automatically? currently im using
config.php
require_once("libs/dibi.min.php");
$config_Bugtracker = array (
'driver' => 'mysql',
'host' => 'localhost',
/*...*/
'charset' => 'utf8',
'lazy' => true //we set lazy so that connection is only made if we use it.
);
dibi::connect( $config_Bugtracker , 'BugTracker' );
and in file where query is done:
include("config.php");
$connection = dibi::getConnection("BugTracker");
$result = $connection->query(" SELECT blablabla",$username);
unset($result);
is that enough or do i need to add the dibi::disconnect in file where query is done?
Connections (and resultset) are closed and released from memory
automatically, you do not need to call disconnect().