Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2c98f4

Browse files
Merge pull request #31 from log2k/patch-1
Update class.MySQL.php
2 parents b043850 + 12ba0ce commit e2c98f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎class.MySQL.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ class MySQL {
4444
* Class Constructor *
4545
* *******************/
4646

47-
function __construct($database, $username, $password, $hostname='localhost'){
47+
function __construct($database, $username, $password, $hostname='localhost', $port=3306){
4848
$this->database = $database;
4949
$this->username = $username;
5050
$this->password = $password;
51-
$this->hostname = $hostname;
51+
$this->hostname = $hostname.':'.$port;
5252

5353
$this->Connect();
5454
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /