The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
SQL error when using ft_api_check_submission_is_unique - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: SQL error when using ft_api_check_submission_is_unique (/showthread.php?tid=264) Pages:
1
2
|
RE: SQL error when using ft_api_check_submission_is_unique - msaz87 - Sep 5th, 2009 Hey Ben, I updated the API files and also my code, which now looks like this, in full: PHP Code: <?php But I still get the same problem regarding it always coming back telling me the submission isn't unique. Did I do something wrong? Thanks so much for your help with this, Ben! RE: SQL error when using ft_api_check_submission_is_unique - azparrothead - Sep 6th, 2009 I also updated to the new version of thr API and same result in a simple test....not unique message when it is. RE: SQL error when using ft_api_check_submission_is_unique - Ben - Sep 6th, 2009 Hey azparrothead, Hmm! Would it be possible for you to send me your PHP page? I'd like to test it out myself (ben.keen@gmail.com). Thanks! - Ben RE: SQL error when using ft_api_check_submission_is_unique - msaz87 - Sep 27th, 2009 Just to recap on this thread the solution for anyone else who might run into the problem... via Ben and azparrothead... The code line involving the IF needs the addition of a "!" before the ft_api_check_submission_is_unique: PHP Code: if (!ft_api_check_submission_is_unique(1, $criteria, $files["form_tools_submission_id"])) |