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
190ddd1c
authored
2016-03-31 10:43:16 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
r
1 parent
0a8257c5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
docker-compose.yml
includes/functions.php
docker-compose.yml
View file @
190ddd1
...
...
@@ -13,6 +13,8 @@ web:
image
:
banners_web
ports
:
-
"
9090:80"
links
:
-
mysql
volumes
:
-
./:/var/www/html
...
...
includes/functions.php
View file @
190ddd1
...
...
@@ -10,9 +10,9 @@ class Users {
$dbName
=
'banners'
;
//Define database name
//connect databse
$mysqli
=
new
mysqli
();
$con
=
$mysqli
->
mysqli_connect
(
$dbServer
,
$dbUsername
,
$dbPassword
,
$dbName
);
if
(
$mysqli
->
mysqli_connect_errno
()){
$con
=
mysqli_connect
(
$dbServer
,
$dbUsername
,
$dbPassword
,
$dbName
);
if
(
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