Welcome Guest, Not a member yet? Register   Sign In
mysql problem using ion auth
#1

Hi guys,

I am trying to use ion auth for athenticate users on my web application. However I am getting this error


Code:
A PHP Error was encountered

Severity: 8192

Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.

Filename: mysqli/mysqli_driver.php

Line Number: 320



Here is my database.php config file

Code:
$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = '192.168.56.101';
$db['default']['username'] = 'root';
$db['default']['password'] = 'pass';
$db['default']['database'] = 'ionauth';
$db['default']['dbdriver'] = 'mysqli';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = FALSE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
Reply
#2

What version of CodeIgniter are you using?
Reply
#3

I came across this same error when my DB connection failed. Maybe that is the real issue.
Reply
#4

More to the point, mysql_escape_string() is not in the current version of the mysqli_driver for either CI 2 or 3. If the error message is accurately reporting the error (and its location), the problem can probably be fixed by updating CI. After all, the mysqli driver shouldn't be using mysql_* functions.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB