Menu

#1 $db, $this->db deprecated

Unstable_(example)
open
nobody
None
5
2004-10-15
2004-10-15
No

The $db and $this->db vars are deprecated from now, but
as a fix add:

define \('MYSQL\_USER', $db\['user'\]\);
define \('MYSQL\_PASS', $db\['pass'\]\);
define \('MYSQL\_SERVER', $db\['server'\]\);
define \('MYSQL\_DB', $db\['db'\]\);
define \('MYSQL\_PRE', $db\['prefix'\]\);

To your config file, so you can use both, and you are
prepared for upgrading :)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB