';
echo 'Date format is YYYY-MM-DD / 1977-06-07
';
echo 'Please click HERE to try again';
include_once ('footer.php');
exit();
}
$sqlupdate = "UPDATE `pops` SET `popno` = $fno, `popname` = '$fname', `popcollectionid` = $fpcid, `inserteddate` = '$fdate' WHERE `funkoid` = $fid AND `userid` = $userid";
if (!$result = $con->query($sqlupdate)){
die ('There was an error running the query [' . $con->error . ']');
}
echo $fname . ' info successfully updated, returning to editor.';
header("refresh:2;url=edit.php?id=$fid");
include_once ('footer.php');
exit();
} else {
echo 'Editing data
';
if (!$editid == "") {
$sqlfind = "SELECT * FROM (pops INNER JOIN popcollection ON pops.popcollectionid = popcollection.popcollectionid) WHERE `funkoid` = $editid AND `userid` = $userid";
if (!$result = $con->query($sqlfind)){
die ('There was an error running the query [' . $con->error . ']');
}
echo '
';
$_SESSION['image'] = "default";
}
echo '