10/02/15 16:54
Aangelus
Salve ragazzi quest'oggi mi si è presentato un problema con la creazione delle tabelle, cioè quando un nome utente è una parola intera tutto funziona benissimo, il problema insorge qualora è suddivisa in 2 o più parti. Di seguito posto il codice e relativo errore
errore:
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 'bueno ( ID INT NOT NULL AUTO_INCREMENT, Hobby varchar(30) NOT NULL, Sport varc' at line 1
il nome in questo caso era el bueno
suggerimenti ??
$query = 'CREATE TABLE ' . $Nome . ' ( '. 'ID INT NOT NULL AUTO_INCREMENT, '. 'Hobby varchar(30) NOT NULL, '. 'Sport varchar(30) NOT NULL, '. 'descrizione di se varchar(400) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, '. 'PRIMARY KEY(ID))';
errore:
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 'bueno ( ID INT NOT NULL AUTO_INCREMENT, Hobby varchar(30) NOT NULL, Sport varc' at line 1
il nome in questo caso era el bueno
suggerimenti ??
aaa