Created
February 14, 2018 13:01
-
-
Save rizkyramadhan21/3f297ea763c7c746248eba1609f4885b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('DBHOST', 'myhost'); | |
define('DBUSER', 'myuser'); | |
define('DBPASS', 'mypassword'); | |
define('DBNAME', 'mydatabase'); | |
$db = new mysqli(DBHOST, DBUSER, DBPASS, DBNAME); | |
if ($db->connect_error) { | |
die("Koneksi ke database gagal!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment