The key "" is not recognized and ignored code example
Example: The key "initial" is not recognized and ignored.
<?php
include "connection.php";
include "header.php";
?>
<!DOCTYPE html>
<html>
<head>
<title>Feedback</title>
<link rel="stylesheet" type="text/css" href="style2.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial scale=1">
<br>
<style type="text/css">
.wrapper
{
padding: 10px;
margin: 5px auto;
width: 600px;
height: 400px;
background-color: #9e9e9e;
opacity: .6;
color: black;
}
.form-control{
height: 100px;
width: 60%;
}
.scroll{
width: 100%;
height: 300px;
overflow: auto;
}
.section{
height: 450px;
width: 1361px;
}
.sect_img
{
padding-left: 20px;
height: 400px;
width: 50%;
margin-left: 338px;
margin-top: 0px;
background-image: url("img/t.jpg");
}
.footer{
height: 80px;
width:1361;
background-color: #009688;
}
</style>
</head>
<body>
<br><br>
<section>
<div class="sect_img">
<div class="wrapper">
<br><br>
<div class="scroll">
<?php
if(isset($_POST['submit']))
{
$sql="INSERT INTO `comments` VALUES('','$_POST[comment]');";
if(mysqli_query($db,$sql))
{
$q="SELECT * FROM `comments` ORDER BY `id`,`comment` DESC";
$res=mysqli_query($db,$q);
echo "<table class='table table_bordered'>";
while ($row=mysqli_fetch_assoc($res))
{
echo "<tr>";
echo "<td>"; echo $row['comment']; echo "</td>";
echo "</tr>";
}
}
}
else
{
$q="SELECT * FROM `comments` ORDER BY `id`,`comment` DESC";
$res=mysqli_query($db,$q);
echo "<table class='table table_bordered'>";
while ($row=mysqli_fetch_assoc($res))
{
echo "<tr>";
echo "<td>"; echo $row['comment']; echo "</td>";
echo "</tr>";
}
}
?>
</div>
</div>
</section>
</body>
</html>