-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
33 lines (30 loc) · 843 Bytes
/
footer.php
File metadata and controls
33 lines (30 loc) · 843 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
33
<?php
$conn = mysqli_connect("localhost", "root", "", "newdemo");
// Check connection
if($conn -> connect_error)
{
die("Connection failed:".$conn -> connect_error);
}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<?php
$sql = "SELECT * from footer;";
//$result = $conn -> query($sql);
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_assoc($result);
?>
<div class="content">
<!-- <h1 class="header"></h1> -->
<?php echo $row["address"]; ?> <br>
<?php echo $row["phone"]; ?> <br>
<a href = "mailto: <?php $row["email"];?>"><?php echo $row["email"]; ?></a> <br>
<a href="https://api.whatsapp.com/send?phone=<?php $row["whatsapp"]; ?>"><?php echo $row["whatsapp"]; ?></a> <br>
<a href="<?php $row["url"]; ?>"><?php echo $row["url"]; ?></a>
</div>
</body>
</html>