Skip to content

Instantly share code, notes, and snippets.

@mcorkum
Created May 12, 2016 04:24
Show Gist options
  • Save mcorkum/68bd696bbd596a4aeba102b03ad3e91e to your computer and use it in GitHub Desktop.
Save mcorkum/68bd696bbd596a4aeba102b03ad3e91e to your computer and use it in GitHub Desktop.
Yup
$sql = "INSERT INTO feedback (name, email, comment) VALUES ('$fn', '$em', '$comm')";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment