Severity: 8192Warum das passieren? Wie kann ich es lösen?
Nachricht: mysql_connect(): Die MySQL-Erweiterung ist veraltet und wird in der Zukunft entfernt werden: Verwendung mysqli oder PDO statt
Dateiname: mysql/mysql_driver.php
Line Number : 136
Backtrace:
Datei: C: \ wamp \ www \ ci \ Controller application \ \ c_testing.php Line: 27 funktionell eingerichteten auf: __construct
Datei: C: \ wamp \ www \ ci \ index.php Line: 315 Funktion: require_once
in meiner codeigniter Datei in databease.php Ich benutze diese
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost:81',
'username' => 'root',
'password' => '1234',
'database' => 'testing',
'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
);
dann in meiner testing.php Datei
Class Testingdata extends CI_Model{
function __construct(){
parent::__construct();
$this->load->database();
$this->db->reconnect();
}
// data obtained from database
function get_data(){
$this->db->select('*');
$this->db->from('lecturer_profile');
$query = $this->db->get();
return $query->result();
}
}
?>`enter code here`
weitere Informationen benötigt ... – thegio
bitte .. ich brauche eine Lösung für diese .. – Shah
Suche nach gegebenem Fehler, wie Sie es lösen können – Linus