/*
+--------------------------------------------------------------------------
| BO CQ DX System V 1.1 bo 1
| ========================================
| by Bokhalifa A61BK
| (c) 2009 - 2010 ISOC.AE
| http://www.a61bk.com
| ========================================
| Web: http://www.a61bk.com
| Date:, 21 03 2009
| Email: a61bk@a61bk.com
+---------------------------------------------------------------------------
|
| > Module written by Bokhalifa A61BK
| > Date: 21 03 2009
| > Version Number: 1.1 bo 1
+--------------------------------------------------------------------------
*/
//-----------------------------------------------
// DO NOT EDIT BELOW THIS LINE
//-----------------------------------------------
include('config.php');
date_default_timezone_set('Asia/Dhaka');
require_once 'libs/Smarty.class.php';
include('smrtdb.php');
function db_connect($host,$user,$pass,$db) {
$BO = new mysqli($host, $user, $pass, $db);
$BO->set_charset("utf8");
if($BO->connect_error)
die('Connect Error (' . BO_connect_errno() . ') '. BO_connect_error());
return $BO;
}
$BO = db_connect($db_server,$db_username,$db_password,$db_name);
$smarty = new Smarty();
$smarty->template_dir = './skin_cache';
$smarty->compile_dir = './skin_cache_c';
$smarty->registerResource('db', new Smarty_Resource_Mysql());
if ($BO->connect_error) {
die("ERROR: Unable to connect: " . $BO->connect_error);
}
?>
Warning: Undefined variable $BO in H:\root\home\a61bkkhalid-002\www\site1\Class\function.php on line 5
Fatal error: Uncaught Error: Call to a member function query() on null in H:\root\home\a61bkkhalid-002\www\site1\Class\function.php:5
Stack trace:
#0 H:\root\home\a61bkkhalid-002\www\site1\index.php(22): include()
#1 {main}
thrown in H:\root\home\a61bkkhalid-002\www\site1\Class\function.php on line 5