Adil
DevBest CEO
- May 28, 2011
- 1,278
- 718
Quick question - is it better to use:
Or is it better to use:
PHP:
class SQLi extends mysqli{
private $isConnected = false;
public function __construct(){
global $_CONF;
$link = parent::__construct($_CONF['mysql']['host'],$_CONF['mysql']['user'],$_CONF['mysql']['password'],$_CONF['mysql']['db']);
$isConnected = true;
}
}
Or is it better to use:
PHP:
class SQLi{
public function __construct(){
global $_CONF;
$link =new mysqli($_CONF['mysql']['host'],$_CONF['mysql']['user'],$_CONF['mysql']['password'],$_CONF['mysql']['db']);
}}