Skip to content

Instantly share code, notes, and snippets.

@JasperMeurs
Created July 19, 2016 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JasperMeurs/00fa41500a00c44f19db8feee5599917 to your computer and use it in GitHub Desktop.
Save JasperMeurs/00fa41500a00c44f19db8feee5599917 to your computer and use it in GitHub Desktop.
$query = "INSERT INTO coach (firstName, lastName, email, clubName)
VALUES ('$_POST[firstName]', '$_POST[lastName]', '$_POST[email]', '$_POST[clubName]')";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}$conn->close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment