Skip to:
Content
Pages
Categories
Search
Top
Bottom

Does the order of parameters in db-mysqli.php matter?

  • @chrishajer

    Participant

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @sambauers

    Participant

    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.

    @chrishajer

    Participant

    Thanks Sam.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar