Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PHP-MySQLi-Database-Class
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
PHP-MySQLi-Database-Class
Commits
678d6363
Commit
678d6363
authored
Mar 01, 2017
by
Alexander Butenko
Committed by
GitHub
Mar 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #595 from avbdr/master
liberate username and password variables for dbobject use
parents
f2b91854
4397e47d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
MysqliDb.php
MysqliDb.php
+6
-6
No files found.
MysqliDb.php
View file @
678d6363
...
...
@@ -10,7 +10,7 @@
* @copyright Copyright (c) 2010-2016
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
* @link http://github.com/joshcam/PHP-MySQLi-Database-Class
* @version 2.
7
* @version 2.
8-master
*/
class
MysqliDb
...
...
@@ -136,8 +136,8 @@ class MysqliDb
* @var string
*/
protected
$host
;
protected
$username
;
protected
$password
;
protected
$
_
username
;
protected
$
_
password
;
protected
$db
;
protected
$port
;
protected
$charset
;
...
...
@@ -244,8 +244,8 @@ class MysqliDb
$this
->
host
=
$host
;
}
$this
->
username
=
$username
;
$this
->
password
=
$password
;
$this
->
_
username
=
$username
;
$this
->
_
password
=
$password
;
$this
->
db
=
$db
;
$this
->
port
=
$port
;
$this
->
charset
=
$charset
;
...
...
@@ -278,7 +278,7 @@ class MysqliDb
throw
new
Exception
(
'MySQL host is not set'
);
}
$this
->
_mysqli
=
new
mysqli
(
$this
->
host
,
$this
->
username
,
$this
->
password
,
$this
->
db
,
$this
->
port
);
$this
->
_mysqli
=
new
mysqli
(
$this
->
host
,
$this
->
_username
,
$this
->
_
password
,
$this
->
db
,
$this
->
port
);
if
(
$this
->
_mysqli
->
connect_error
)
{
throw
new
Exception
(
'Connect Error '
.
$this
->
_mysqli
->
connect_errno
.
': '
.
$this
->
_mysqli
->
connect_error
,
$this
->
_mysqli
->
connect_errno
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment