Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = 'localhost'; //127.0.0.1
- $user = 'root';
- $pass = '';
- $db = 'coba';
- $koneksi = new mysqli($host, $user, $pass, $db);
- if ($koneksi->connect_errno) {
- # code...
- echo "Gagal Konek Ke Database". $koneksi->connect_error;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement