Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
banners-with-skip
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0a8257c5
authored
2016-03-31 10:39:24 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
e
1 parent
dce77dc6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
includes/functions.php
includes/functions.php
View file @
0a8257c
...
...
@@ -10,8 +10,9 @@ class Users {
$dbName
=
'banners'
;
//Define database name
//connect databse
$con
=
mysqli_connect
(
$dbServer
,
$dbUsername
,
$dbPassword
,
$dbName
);
if
(
mysqli_connect_errno
()){
$mysqli
=
new
mysqli
();
$con
=
$mysqli
->
mysqli_connect
(
$dbServer
,
$dbUsername
,
$dbPassword
,
$dbName
);
if
(
$mysqli
->
mysqli_connect_errno
()){
die
(
"Failed to connect with MySQL: "
.
mysqli_connect_error
());
}
else
{
$this
->
connect
=
$con
;
...
...
Please
register
or
sign in
to post a comment