to help troubleshoot, change line 154:
$WA_redirectURL = "SnapsDetails.php";
to:
$WA_redirectURL = "";
then add the following code just after the <body> tag to output the SQL Insert Record command:
<?php echo("IP: ". (isset($_SERVER["REMOTE_ADDR"]))?$_SERVER["REMOTE_ADDR"]:"N/A"."<br />SQL: ".$WA_Sql); ?>
post back the results after trying an insert.