fix: guestbook header include
All checks were successful
Deploy Website / deploy (push) Successful in 5s
All checks were successful
Deploy Website / deploy (push) Successful in 5s
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
include '../pages/header.html';
|
||||
$config = require "../../config.php";
|
||||
$conn = mysqli_connect($config['DB_ADDR'], $config['DB_USR'], $config['DB_PASSWD'], $config['DB_NAME']);
|
||||
|
||||
@@ -26,6 +25,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$sql = "SELECT * FROM " . $config['DB_NAME'] . " ORDER BY id DESC";
|
||||
$result = mysqli_query($conn, $sql);
|
||||
|
||||
include '../pages/header.html';
|
||||
echo "<p>Welcome to my guestbook, feel free to leave a message !</p>";
|
||||
echo "<br><br>";
|
||||
echo "<form action='" . $_SERVER['PHP_SELF'] . "' method='post'>";
|
||||
|
||||
Reference in New Issue
Block a user