What code did you modify? Do I have to do anything with my scripts or html to take advantage of the change?
I have modified the code from
$conn = mysqli_connect($host, $user, $pass, $db);
You were not selecting the database on which to perform the query.
Also, there are query errors in your script, in
$sql="INSERT INTO members VALUES('$zipcode','$state','$precinct','$email', '$password', '$secq', '$seca', $comment)";
- You have not selected the columns on which to enter the values
- You have not provided values for the last column (stamp)
- Missing apostrophe on
The code should be like this:
$sql="INSERT INTO members(zipcode, state, precinct, email, password, secq, seca, comment, stamp) VALUES('$zipcode','$state','$precinct','$email', '$password', '$secq', '$seca', '$comment', 'current_time')";