location.href = \'[[~26]]?rand=" . $rand . "&cid=" . $sample_id . "&rid=" . $insert_id . "&stid=" .$crop_type . "\',\'_blank\';"; } else { die(mysqli_error($con)); // TODO: better error handling //echo "User Profile incorrect"; } } return; ';