the key 22initial 22 is not recognized and ignored

Solutions on MaxInterview for the key 22initial 22 is not recognized and ignored by the best coders in the world

showing results for - "the key 22initial 22 is not recognized and ignored "
Yael
31 Jun 2017
1<?php
2include "connection.php";
3include "header.php";
4 ?>
5
6 <!DOCTYPE html>
7<html>
8<head>
9	<title>Feedback</title>
10    <link rel="stylesheet" type="text/css" href="style2.css">
11	<meta charset="utf-8">
12	<meta name="viewport" content="width=device-width,initial scale=1">
13	<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
14
15<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
16
17
18<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> -->
19
20<!-- <header>
21	<div class="logo">
22	<img src="img/m.png" style="margin-top: -79px;">
23	<h1 style="color: yellow;">LIBRARY MANAGEMENT SYSTEM</h1>
24</div>
25</header> -->
26<br>
27
28<style type="text/css">
29	.wrapper
30	{
31		padding: 10px;
32		margin: 5px auto;
33width: 600px;
34height: 400px;
35background-color: #9e9e9e;
36opacity: .6;
37color: black;
38	}
39	.form-control{
40      height: 100px;
41      width: 60%;
42	}
43	.scroll{
44		width: 100%;
45		height: 300px;
46		overflow: auto;
47	}
48	.section{
49    height: 450px;
50    width: 1361px;
51   /* background-color:grey ;*/
52}
53	 .sect_img
54	{
55	padding-left: 20px;
56    height: 400px;
57    width: 50%;
58    margin-left: 338px;
59    margin-top: 0px;
60     background-image: url("img/t.jpg");
61}
62.footer{
63    height: 80px;
64    width:1361;
65    background-color: #009688; 
66}
67</style>
68</head>
69<body>
70<br><br>
71<section>
72	<div class="sect_img">
73	<div class="wrapper">
74		<br><br>
75<!-- <h4>If you have any suggestions or questions  please comment below:</h4> -->
76<!-- <form style="" action="" method="post">
77	<input class="form-control" type="text" name="comment" placeholder="write something...">
78	<br><br>
79	<input class="btn btn-default" type="submit" name="submit" value="comment" style="width: 100px; height: 30px;"> 
80</form> -->
81<div class="scroll">
82<?php 
83if(isset($_POST['submit']))
84{
85$sql="INSERT INTO `comments` VALUES('','$_POST[comment]');";
86if(mysqli_query($db,$sql))
87{
88	$q="SELECT * FROM `comments` ORDER BY `id`,`comment` DESC";
89	$res=mysqli_query($db,$q);
90
91	echo "<table class='table table_bordered'>";
92	while ($row=mysqli_fetch_assoc($res))
93	{
94      echo "<tr>";
95        echo "<td>"; echo $row['comment']; echo "</td>";
96        echo "</tr>";
97	}
98  }
99}
100else
101{
102$q="SELECT * FROM `comments` ORDER BY `id`,`comment` DESC";
103	$res=mysqli_query($db,$q);
104
105	echo "<table class='table table_bordered'>";
106	while ($row=mysqli_fetch_assoc($res))
107	{
108      echo "<tr>";
109        echo "<td>"; echo $row['comment']; echo "</td>";
110        echo "</tr>";
111    }
112
113}
114 ?>
115
116</div>
117
118</div>
119
120</section>
121
122</body>
123</html>
124
similar questions