I just posted another thread on the mail() function (resolved). However, now I'm faced with a mysqli_query() problem.
I'm getting "Unable to query MySQL server:" from the following code. I am totally stumped as to why it can't query successfully.

I'm getting "Unable to query MySQL server:" from the following code. I am totally stumped as to why it can't query successfully.
PHP:
<?php
$first_name = $_POST['firstname'];
$last_name = $_POST['lastname'];
$when_it_happened = $_POST['whenithappened'];
$how_long = $_POST['howlong'];
$how_many = $_POST['howmany'];
$alien_description = $_POST['aliendescription'];
$what_they_did = $_POST['whattheydid'];
$fang_spotted = $_POST['fangspotted'];
$other = $_POST['other'];
$email = $_POST['email'];
$dbc = mysqli_connect('localhost', 'myUser', 'myPass', 'myDB');
if(!dbc) {
die('Unable to connect to MySQL server.' . mysqli_error());
}
$query = "INSERT INTO aliens_abduction (first_name, last_name, when_it_happened, " .
"how_long, how_many, alien_description, what_they_did, fang_spotted, other, email) " .
"VALUES ('$first_name', '$last_name', '$when_it_happened', '$how_long', '$how_many', " .
"'$alien_description', '$what_they_did', '$fang_spotted', '$other', '$email')";
$result = mysqli_query($dbc, $query)
or die('Unable to query MySQL server:' . mysqli_error());
mysqli_close($dbc);
?>