Postado Julho 24, 2015 9 anos Alguem me explica como resolver esse problema detalhadamente? Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'otserver.bans' doesn't exist' in C:\xampp\htdocs\pot\OTS_AccountBan.php:55 Stack trace: #0 C:\xampp\htdocs\pot\OTS_AccountBan.php(55): PDO->query('SELECT `id`, `t...') #1 C:\xampp\htdocs\pot\OTS_Account.php(955): OTS_AccountBan->find('2026977') #2 C:\xampp\htdocs\accountmanagement.php(31): OTS_Account->isBanned() #3 C:\xampp\htdocs\index.php(131): include('C:\xampp\htdocs...') #4 {main} thrown inC:\xampp\htdocs\pot\OTS_AccountBan.php on line 55
Postado Julho 24, 2015 9 anos Solução Executa essa query na aba SQL do seu phpmyadmin. CREATE TABLE IF NOT EXISTS `bans` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` tinyint(1) NOT NULL COMMENT '1 - ip banishment, 2 - namelock, 3 - account banishment, 4 - notation, 5 - deletion', `value` int(10) unsigned NOT NULL COMMENT 'ip address (integer), player guid or account number', `param` int(10) unsigned NOT NULL DEFAULT '4294967295' COMMENT 'used only for ip banishment mask (integer)', `active` tinyint(1) NOT NULL DEFAULT '1', `expires` int(11) NOT NULL, `added` int(10) unsigned NOT NULL, `admin_id` int(10) unsigned NOT NULL DEFAULT '0', `comment` text NOT NULL, `reason` int(10) unsigned NOT NULL DEFAULT '0', `action` int(10) unsigned NOT NULL DEFAULT '0', `statement` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `type` (`type`,`value`), KEY `active` (`active`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; Editado Julho 24, 2015 9 anos por Rusherzin (veja o histórico de edições) Ajudei? De nada \o/ Att Rusherzin
Postado Julho 24, 2015 9 anos Table 'otserver.bans' doesn't exist' tabela bans não existe na database. Precisa adiciona-lá. Defina melhor os títulos dos tópicos que você cria. STYLLER OT 2022
Postado Julho 24, 2015 9 anos tabela bans não existe na database. Precisa adiciona-lá. Defina melhor os títulos dos tópicos que você cria. cara preciso de sua ajuda pm pf.
Postado Julho 24, 2015 9 anos Autor Rusherzin, me explica passo a passo como fazer? sou novo nessa area...
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.