Ir para conteúdo

Featured Replies

Postado

CREATE TABLE IF NOT EXISTS `polls` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player_id` int(11) NOT NULL,
`poll` varchar(255) NOT NULL,
`options` varchar(255) NOT NULL,
`timestamp` int(11) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`player_id`) REFERENCES `players` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci ROW_FORMAT=DYNAMIC AUTO_INCREMENT=1 ;

INSERT INTO `polls` (`player_id`, `poll`, `options`, `timestamp`) VALUES
(2, 'What about this Poll System?', 'Really good|Nice!|Huh?|Worst', UNIX_TIMESTAMP());

CREATE TABLE IF NOT EXISTS `poll_votes` (
`poll_id` int(11) NOT NULL,
`votes` varchar(255) NOT NULL,
`account_id` varchar(255) NOT NULL,
FOREIGN KEY (`poll_id`) REFERENCES `polls` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1
  • Respostas 12
  • Visualizações 3.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Toma minha Database só tem 2 account e está Funcional Link >> poketibia.rar

  • CREATE TABLE IF NOT EXISTS `poll` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question` varchar(150) , `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `date_start` datetime , `date_end` datetime

  • Acesse: localhost/phpmyadmin   E escolha a sua database otserv, escolha a aba sql, e cole este script e execute: CREATE TABLE IF NOT EXISTS `news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title`

Postado
  • Autor

essas sql ai eu ja add, mas ta pedindo essa..

Table 'pokemon.poll_answer' doesn't exist..

se tiver um mysql pronto ai que eu possa usar eu agradeço, e ganha GM no meu server quando tiver pronto pela ajuda! ;)

 

vlw

Editado por Mackenzie (veja o histórico de edições)

          Se Ajudei Rep + ^^

Postado
  • Autor

Tudo certinho, sua sql deu varios erros com meu server mas estou adaptando aqui. vlw pela ajuda ;)


A Database Error Occurred

Error Number: 1054

Unknown column 'page_access' in 'field list'

SELECT `id`, `page_access`, `nickname` FROM (`accounts`) WHERE `name` = 'Conta' AND `password` = '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'

 

Alguem sabe?

          Se Ajudei Rep + ^^

Postado

Execute na sua Database;

alter table `players` `add` page_access INT (32) NOT NULL;

alter table `players` `add` page_access INT (32) NOT NULL;
alter table `players` add `skull` INT (32) NOT NULL;
alter table `players` add `marriage` INT (32) NOT NULL;

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo