The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
An error in your SQL syntax - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: An error in your SQL syntax (/showthread.php?tid=2477)



An error in your SQL syntax - conradcliff - Jul 1st, 2013

Hello there, first I'd like to say that I'm so thankful for FormTools, it's been great!

I've been running a html form for a long time with FT and I just recently duplicated the form and changed it a bit for a slightly different purpose...still very similar.

When I try to add it to FT I get the following error:

Code:
Error:
Failed query in ft_finalize_form, /home/sspbooth/public_html/formtools/global/code/forms.php, line 238:

CREATE TABLE ft_form_3 (

submission_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,

PRIMARY KEY(submission_id),

col_1 VARCHAR(20),

col_2 VARCHAR(20),

col_3 VARCHAR(20),

col_4 VARCHAR(20),

col_5 VARCHAR(20),

col_6 VARCHAR(20),

col_7 VARCHAR(20),

col_8 VARCHAR(20),

col_9 VARCHAR(20),

col_10 VARCHAR(20),

col_11 VARCHAR(20),

col_12 VARCHAR(20),

col_13 VARCHAR(20),

col_14 VARCHAR(20),

col_15 VARCHAR(20),

col_16 VARCHAR(20),

col_17 VARCHAR(20),

col_18 VARCHAR(20),

col_19 VARCHAR(20),

col_20 VARCHAR(20),

col_21 VARCHAR(20),

col_22 VARCHAR(20),

col_23 VARCHAR(20),

col_24 VARCHAR(20),

col_25 VARCHAR(20),

col_26 VARCHAR(20),

col_27 VARCHAR(20),

col_28 VARCHAR(20),

col_29 VARCHAR(20),

col_30 VARCHAR(20),

col_31 VARCHAR(20),

col_32 VARCHAR(20),

col_33 VARCHAR(20),

col_34 VARCHAR(20),

col_35 VARCHAR(20),

col_36 VARCHAR(20),

col_37 VARCHAR(255),

submission_date DATETIME NOT NULL,

last_modified_date DATETIME NOT NULL,

ip_address VARCHAR(15),

is_finalized ENUM('yes','no') default 'yes')

TYPE=InnoDB DEFAULT CHARSET=utf8
Debug:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=InnoDB DEFAULT CHARSET=utf8' at line 45

I have no idea what it's talking about Sad