What is wrong with this code, please help
error: Warning: mysqli_query() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\ap\a.php on line 28 Error: INSERT INTO feedback (Name, Email, Subject Matter ,Message) VALUES ('assda','sadsa','subject goes hsdaaasere','type in a dsad here') <?php $servername = "127.0.0.1"; $username = "root"; $password = "Password"; $dbname = "shop"; $name = $_POST['name']; $email= $_POST['email']; $subject = $_POST['subject']; $message = $_POST['message']; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } $sql="INSERT INTO feedback (Name, Email, Subject Matter ,Message) VALUES ('$name','$email','$subject','$message')"; if (mysqli_query($sql,$conn)) { echo "New record created successfully"; } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } mysqli_close($conn); ?>