mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\satan project\confeb.php on line 8
- <?php
- include_once('connect1.php');
- if(isset($_POST['submit']))
- {
- $name = $_POST['name'];
- $email = $_POST['email'];
- $address = $_POST['address'];
- if(mysqli_query("insert into students_record(name,email,address) VALUES('$name','$email','$address')"))
- {
- echo"submitted";
- }
- }
- ?>
- <!DOCTYPE HTML>
- <html lang="en-US">
- <head>
- <meta charset="UTF-8">
- <title>[email protected] | php tutorials </title>
- <body>
- <form action=" " method="post">
- <p> Name:<br /> <input type ="text" name="name"/> </p>
- <p> email <br /> <input type ="text" name="email" /> </p>
- <p> address <br /> <input type="text" name="address" /> </p>
- <p> <input type="submit" name="submit" value="submit" /> </p>
- </form>
- </body>
- </html>
this is my code and lineno 8 showing mysqli_query at least 2parameter i dont find out exactily