test
This commit is contained in:
parent
f1c677b005
commit
dab3e2c8b0
@ -5,7 +5,7 @@ $user = "root";
|
||||
$password = "";
|
||||
$database = "users_db";
|
||||
|
||||
$conn = new mysqli("localhost", "root", "", "users_db", 3307);
|
||||
$conn = new mysqli($host, $user, $password, $database);
|
||||
|
||||
if ($conn->connect_error) {
|
||||
die("Koneksi gagal: " . $conn->connect_error);
|
||||
|
||||
8
test_db.php
Normal file
8
test_db.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$conn = new mysqli("localhost", "root", "", "users_db", 3307);
|
||||
|
||||
if ($conn->connect_error) {
|
||||
die("❌ GAGAL: " . $conn->connect_error);
|
||||
}
|
||||
echo "✅ KONEKSI BERHASIL";
|
||||
?>
|
||||
Loading…
x
Reference in New Issue
Block a user