Postado Março 25, 2015 10 anos @NathanAmaro, Execute essa query no seu MySQL: CREATE TABLE `z_news_big` ( `hide_news` INT(11) NOT NULL DEFAULT 0, `date` INT(11) NOT NULL, `author` VARCHAR(255) NOT NULL, `author_id` INT(11) NOT NULL, `image_id` INT(11) NOT NULL DEFAULT 0, `topic` VARCHAR(255) NOT NULL, `text` TEXT NOT NULL ); Atenciosamente, Bruno Minervino
Postado Março 25, 2015 10 anos Diretor Executei o comando mas o error continua. Olhe: Seu comando SQL foi executado com sucesso ( Consulta levou 0.0003 segundos ) CREATE TABLE IF NOT EXISTS `news` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT , `title` VARCHAR( 150 ) DEFAULT '', `body` TEXT, `time` INT( 11 ) DEFAULT '0', PRIMARY KEY ( `id` ) ) ENGINE = INNODB DEFAULT CHARSET = latin1 AUTO_INCREMENT =1; eu modifiquei olha lá Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código. #OpenSource #Programação #Contribuição
Postado Março 25, 2015 10 anos Autor @NathanAmaro, Execute essa query no seu MySQL: CREATE TABLE "z_news_big" ( "hide_news" INTEGER NOT NULL DEFAULT 0, "date" INTEGER NOT NULL, "author" VARCHAR(255) NOT NULL, "author_id" INTEGER NOT NULL, "image_id" INTEGER NOT NULL DEFAULT 0, "topic" VARCHAR(255) NOT NULL, "text" TEXT NOT NULL ); Error na hora de executar a query: #1064 - 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 '"z_news_big" ( "hide_news" INTEGER NOT NULL DEFAULT 0, "date" INTEGER NOT NU' at line 1 -------------EDIT------- Arrisquei a sorte e fui no letestnews.php e na linha 103 em que pede o error coloquei dois "//" tirando ela do script, deu certo. Quero sabe se isso influenciaria em algo. Editado Março 25, 2015 10 anos por NathanAmaro (veja o histórico de edições) Oi
Postado Março 25, 2015 10 anos NathanAmaro, em 25 Mar 2015 - 2:12 PM, disse: Error na hora de executar a query: #1064 - 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 '"z_news_big" ( "hide_news" INTEGER NOT NULL DEFAULT 0, "date" INTEGER NOT NU' at line 1 O error continua Foi desatenção minha Corrigi no meu post. Atenciosamente, Bruno Minervino
Postado Março 25, 2015 10 anos Diretor Error na hora de executar a query: #1064 - 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 '"z_news_big" ( "hide_news" INTEGER NOT NULL DEFAULT 0, "date" INTEGER NOT NU' at line 1 O error continua mano olha lá em cima que editei CREATE TABLE IF NOT EXISTS `z_news_big` ( `hide_news` tinyint(1) NOT NULL DEFAULT '0', `date` int(11) NOT NULL DEFAULT '0', `author` varchar(255) NOT NULL, `author_id` int(11) NOT NULL, `image_id` int(3) NOT NULL DEFAULT '0', `topic` varchar(255) NOT NULL, `text` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Editado Março 25, 2015 10 anos por alexxxxxxx (veja o histórico de edições) Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código. #OpenSource #Programação #Contribuição
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.