Data from HTML/PHP form won't insert into 1and1 SQL Database : <p>I've been trying to get the data from my form entered into my database in 1and1, and it won't work. Is my code formatted incorrectly?</p>

<pre><code>$fullname = ($_POST["fullname"]);
$email = ($_POST["email"]);
$phone = ($_POST["phone"]);
$message = ($_POST["message"]);

// Attempt insert query execution
$sql = "INSERT INTO contact (fullname, email, phone, message) VALUES ('$fullname', '$email', '$phone', '$message')";

if(mysqli_query($data, $sql)){
echo "Records inserted successfully.";
} else{
echo "ERROR: Could not execute $sql. " . mysqli_error($data);
}
</code></pre>

<p>I looked at the W3 school examples, and it looked the same, yet my code doesn't work.</p>
