satan bhagat

satan bhagat

  • NA
  • 2
  • 408

connectivity of xamp server error

Feb 4 2020 3:02 PM
mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\satan project\confeb.php on line 8
  1. <?php  
  2. include_once('connect1.php');  
  3. if(isset($_POST['submit']))  
  4. {  
  5. $name = $_POST['name'];  
  6. $email = $_POST['email'];  
  7. $address = $_POST['address'];  
  8. if(mysqli_query("insert into students_record(name,email,address) VALUES('$name','$email','$address')"))  
  9. {  
  10. echo"submitted";  
  11. }  
  12. }  
  13. ?>  
  14. <!DOCTYPE HTML>  
  15. <html lang="en-US">  
  16. <head>  
  17. <meta charset="UTF-8">  
  18. <title>[email protected] | php tutorials </title>  
  19. <body>  
  20. <form action=" " method="post">  
  21. <p> Name:<br /> <input type ="text" name="name"/> </p>  
  22. <p> email <br /> <input type ="text" name="email" /> </p>  
  23. <p> address <br /> <input type="text" name="address" /> </p>  
  24. <p> <input type="submit" name="submit" value="submit" /> </p>  
  25. </form>  
  26. </body>  
  27. </html>  
this is my code and lineno 8 showing mysqli_query at least 2parameter i dont find out exactily