Call to undefined function mysqli_init ()

0

I am using CodeIgniter with Apache 2.4, I already checked my php.ini file and it does not have commented the line of extension=php_mysqli.dll , and in the same way I check that I have installed the library and I really do not know what the error is

  

An uncaught Exception was encountered Type: Error

     

Message: Call to undefined function mysqli_init ()

     

Filename:   C: \ Apache24 \ htdocs \ planningproject \ system \ database \ drivers \ mysqli \ mysqli_driver.php

     

Line Number: 135

     

Backtrace:

     

File:   C: \ Apache24 \ htdocs \ planningproject \ application \ controllers \ Projects.php   Line: 7 Function: database

     

File: C: \ Apache24 \ htdocs \ planningproject \ index.php Line: 315 Function:   require_once

    
asked by Alondra Najera 26.10.2018 в 19:34
source

1 answer

1

Projects.php

public function __construct(){
    parent::__construct();
    $this->load->database();
    $this->load->helper(array('url','form'));



}

index.php

  require_once BASEPATH.'core/CodeIgniter.php';

database.php

$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
    'dsn'   => '',
    'hostname' => '-',
    'username' => '-',
    'password' => '-',
    'database' => 'pl',
    'dbdriver' => 'mysqli',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => (ENVIRONMENT !== 'production'),
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt' => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE
);
    
answered by 26.10.2018 в 20:56