Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- $db = "simrs";
- //Buat Koneksi
- $conn = new mysqli($servername, $username, $password, $db);
- //Cek Koneksi Jika Error
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }else{
- echo "Koneksi Berhasil";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement