Salve,
Vorrei una informazione.
ho creato questa query per interagire con il mio db con il fine di creare una tabella in esso.
però, non capisco il perchè questa dia il seguente errore:
Query fallita: 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 ''2' ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, firstname VARCHAR(30) NOT ' at line 1
tengo a sottolineare che il nome della tabella è un numero
la query è:
Codice PHP:
$sql = "CREATE TABLE '". (string)$nome_nuova_tab."' (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
firstname VARCHAR(30) NOT NULL,
lastname VARCHAR(30) NOT NULL,
email VARCHAR(50),
reg_date TIMESTAMP
)";
grazie in anticipo