Hay bekomme immer diesen Error weiß aber nicht was falsch ist...
[MySQL] FehlerID: 1064, Fehler: 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 'EXIST `whitelist` (`ID` int(11) NOT NULL AUTO_INCREMENT,`Name` varchar(24) NOT N' at line 1,
Query: CREATE TABLE IF NOT EXIST `whitelist` (`ID` int(11) NOT NULL AUTO_INCREMENT,`Name` varchar(24) NOT NULL DEFAULT '',PRIMARY KEY (`ID`) )
Code:
strdel(query, 0, strlen(query));
print("[MySQL] Whitelist Tabelle wird erstellt.. (falls nicht vorhanden)");
strcat(query, "CREATE TABLE IF NOT EXIST `whitelist` (", sizeof(query));
strcat(query, "`ID` int(11) NOT NULL AUTO_INCREMENT,", sizeof(query));
strcat(query, "`Name` varchar(24) NOT NULL DEFAULT '',", sizeof(query));
strcat(query, "PRIMARY KEY (`ID`) )", sizeof(query));
mysql_query(query);
//edit: Code