ola, pessoal, sera q alguem pode me ajudar… to criando um sistema novo de postagem de notcias… até ai tudoo normal, ja tenhu uma tabela quase que pronta, só que quando vou acrescentar alguns campo na mesma, ai não consigo postar as noticias, a minha tabela funcionando fika assim
–
– Estrutura da tabela noticias
CREATE TABLE IF NOT EXISTS noticias (
id int(5) NOT NULL AUTO_INCREMENT,
id_user varchar(5) NOT NULL DEFAULT ‘4’,
id_cp char(3) NOT NULL DEFAULT ‘’,
id_ct char(3) NOT NULL DEFAULT ‘’,
data datetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
data2 datetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
chapeu text NOT NULL,
titulo text NOT NULL,
subtitulo text,
texto text NOT NULL,
foto varchar(255) DEFAULT NULL,
fotos_extras enum(‘S’,‘N’) NOT NULL DEFAULT ‘N’,
creditos_fotos varchar(255) NOT NULL DEFAULT ‘’,
alinhamento_foto enum(‘L’,‘R’) NOT NULL DEFAULT ‘L’,
largura_foto char(3) NOT NULL DEFAULT ‘250’,
altura_foto char(3) NOT NULL DEFAULT ‘’,
status enum(‘S’,‘N’) NOT NULL DEFAULT ‘S’,
PRIMARY KEY (id),
FULLTEXT KEY chapeu (chapeu)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
–
– Extraindo dados da tabela noticias
INSERT INTO noticias (id, id_user, id_cp, id_ct, data, data2, chapeu, titulo, subtitulo, texto, foto, fotos_extras, creditos_fotos, alinhamento_foto, largura_foto, altura_foto, status) VALUES
(1, ‘28’, ‘79’, ‘2’, ‘2011-04-25 18:00:00’, ‘2011-04-25 18:00:01’, ‘’, ‘’, ‘’, ‘’, ‘’, ‘N’, ‘’, ‘L’, ‘’, ‘’, ‘S’),
(2, ‘28’, ‘79’, ‘2’, ‘2011-04-25 18:01:00’, ‘2011-04-25 18:01:50’, ‘asda’, ‘’, ‘’, ‘’, ‘’, ‘N’, ‘’, ‘L’, ‘’, ‘’, ‘S’);
so que eu teria que aumentar alguns campos, e quando eu aumento, para de cadastrar noticias… deveria conter estes campos aqui na nova tabela
id
id_user
id_cp
id_ct
id_col
chapeu
titulo
subtitulo
texto
autor
foto
cretido_foto
legenda_foto
alinhamento_foto
largura_foto
altura_foto
data
data2
seria mais ou menos issu, só não consegui fazer, sera que alguem pode me ajudar, ou me explicar onde esta o erro e komo posso resolve-lo
desde ja obrigado a todos