bbPress Support Forums › Requests and Feedback › Does the order of parameters in db-mysqli.php matter?
Info
- 3 posts
- 2 voices
- Started 4 years ago by chrishajer
- Latest reply from chrishajer
Does the order of parameters in db-mysqli.php matter?
-
- Posted 4 years ago #
Line 78 in db-mysqli.php looks like this:
$this->$dbhname = @mysqli_connect( $server->host, $server->user, $server->pass, null, $server->port );I thought the order of the parameters was important, and should be:
host, user, pass, dbname, port, socket
From looking at line 78, it would seem that the dbname is set to null, and the socket is not used since it's just not there. Is that intentional? Maybe the database name is set someplace else and is not needed here for this connection? Just asking because it seemed weird to me.
Thanks.
-
- Posted 4 years ago #
The database is selected a few lines down on line 83.
The socket (final and optional) parameter is not used as socket style connections aren't supported.
-
- Posted 4 years ago #
Thanks Sam.
-
You must log in to post.