koneksi.php

mail@pastecode.io avatar
unknown
php
a month ago
384 B
0
Indexable
Never
<?php

$servername = "localhost";
$username = "root";
$password = "";
$dbname = "smartswallow";

// Membuat koneksi ke database
$koneksi = mysqli_connect($servername, $username, $password, $dbname);

// Memeriksa koneksi
if (!$koneksi) {
    echo "Koneksi gagal:"("Koneksi gagal: " . mysqli_connect_error());
} else {
    // echo "Koneksi berhasil ke database<br>";
}
Leave a Comment