-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
35 lines (33 loc) · 1.14 KB
/
config.php
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
33
34
35
<html>
<head>
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="stylesheet" href="style1.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@700&display=swap" rel="stylesheet">
</head>
<div class="top-container">
<a class="header-link" href="aboutus.html">About Us</a>
<a class="header-link" href="index.html">Home</a>
<a class="header-link" href="Homecook.html">Register as Home Cook</a>
<a class="header-link" href="customer.html">Register as Customer</a>
</div>
</html>
<div class = aish>
<?php
//object-oriented
$servername = "localhost";
$username = "root";
$password = "Mysql@123";
$dbname = "miniproject";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
else{
echo "<br>"."<br>"."<br>"."<br>"."<br>"."<br>";
}
?>