Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI107
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franciskus Partogu Hamonangan Napitupulu
PA1-1617-D3TI107
Commits
8ba50efb
Commit
8ba50efb
authored
May 22, 2017
by
Franciskus Partogu Hamonangan Napitupulu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
koneksi
parent
cb490b4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
koneksi.php
koneksi.php
+5
-4
No files found.
koneksi.php
View file @
8ba50efb
<?php
global
$koneksi
;
$koneksi
=
mysqli_connect
(
"localhost"
,
"root"
,
""
);
//
$koneksi = mysqli_connect("localhost", "p1d3ti07", "p1d3ti07");
//
$koneksi = mysqli_connect("localhost", "root", "");
$koneksi
=
mysqli_connect
(
"localhost"
,
"p1d3ti07"
,
"p1d3ti07"
);
if
(
!
$koneksi
)
{
die
(
"Database connection problem"
);
}
$db_use
=
mysqli_select_db
(
$koneksi
,
"toko_buku_cemerlang"
)
or
die
(
"Select database problem !!"
);
//
$db_use = mysqli_select_db($koneksi, "p1d3ti07_d3ti07") or die("Select database problem !!");
//
$db_use = mysqli_select_db($koneksi, "toko_buku_cemerlang") or die("Select database problem !!");
$db_use
=
mysqli_select_db
(
$koneksi
,
"p1d3ti07_d3ti07"
)
or
die
(
"Select database problem !!"
);
?>
\ No newline at end of file
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