-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
33 lines (26 loc) · 844 Bytes
/
Copy pathconfig.php
File metadata and controls
33 lines (26 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// Konfigurasi Database
$host = "localhost"; // Server database
$user = "root"; // Username database
$password = ""; // Password database
$db_name = "app_cognira"; // Nama database
// Koneksi ke Database
$koneksi = new mysqli($host, $user, $password, $db_name);
// Periksa koneksi
if ($koneksi->connect_error) {
die("Koneksi ke database gagal: " . $koneksi->connect_error);
}
// URL Induk
$base_url = "http://localhost/app_cognira"; // Sesuaikan dengan URL proyek Anda
// Pastikan koneksi berhasil
// echo "Koneksi berhasil dan URL induk disiapkan.";
?>
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Tambahkan Favicon -->
<link rel="icon" type="image/png" href="/app_cognira/asset/logo.png">
</head>
</html>