RE: Error after Login
In the ConnectDB_mysqli.inc file it looks like this below. Does anyone know what to do with this issue?
1 <?php
2
3 /* $Id: ConnectDB_mysqli.inc 5785 2012-12-29 04:47:42Z daintree $ */
4
5 /* PeterMoulding.com
6 20071102 Change from mysql to mysqli;
7 20071102 Add $db to DB_escape_string();
8 */
9
10 define ('LIKE','LIKE');
11
12 if (!isset($mysqlport)){
13 $mysqlport = 3306;
14 }
15 global $db; // Make sure it IS global, regardless of our context
16
17 $db = mysqli_connect($host , $DBUser, $DBPassword,$_SESSION['DatabaseName'], $mysqlport);
18 //$result=DB_query('SET sql_mode = ANSI', $db);
19
20
21 //this statement sets the charset to be used for sending data to and from the db server
22 //if not set, both mysqli server and mysqli client/library may assume otherwise
23 mysqli_set_charset($db, 'utf8');
|