';
$fpcname = (isset($_POST['collection']) ? $_POST['collection'] : null);
$fpcname = mysqli_real_escape_string($con, $fpcname);
$sqlfpcname = "INSERT INTO funkopops.popcollection (popcollection) VALUES ('$fpcname')";
if (!empty($fpcname)) {
if (!$result = $con->query($sqlfpcname)){
die ('There was an error running the query [' . $con->error . ']');
}
echo 'You have successfully entered ' . $fpcname . ' into the database!
';
echo 'Refreshing page in 2 seconds to add another pop collection group.
';
header("refresh:2;url=collection.php");
} else {
echo '