I have the following code:
<?php
  include("phpconnect.php");
  $name = $_GET["name"];
  $date = $_GET["date"];
  echo $name;
  echo $date;
  $sql = "INSERT INTO main (name, visits, visitDate, lastVisit) 
  VALUES ('$name', '1', '$date', '$date')";
?>
When the code runs I get a message from phpconnect.php saying that it successfully connected. However, when I check the database there is no information in it. If anyone knows why this is happening or how I could fix it please let me know. Thanks!
 
     
     
    