Ciao a tutti, sto cercando di creare una tabella in mysql, ma mi da un errore.
la tabella è questa:
$query=mysql_query("CREATE TABLE IF NOT EXISTS decision (id_dec INT (5) UNSIGNED not null AUTO_INCREMENT, data INT (11), titolo VARCHAR (255), testo TEXT, titolo_sondaggio VARCHAR (255), permesso_voto INT (1), permesso_post (1), PRIMARY KEY (id_dec)) TYPE=MyISAM");
print mysql_error();
ed ecco l'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 '(1), PRIMARY KEY (id_dec)) TYPE=MyISAM' at line 1
Mi date una mano?![]()
![]()