Postado Outubro 12, 2014 10 anos Alguém tem essa query? Estou precisando mais não encontro Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'baiaku.reports' doesn't exist' in C:\xampp\htdocs\layouts\tibiacom\layout.php:637 Stack trace: #0 C:\xampp\htdocs\layouts\tibiacom\layout.php(637): PDO->query('SELECT COUNT(*)...') #1 C:\xampp\htdocs\index.php(345): include('C:\xampp\htdocs...') #2 {main} thrown inC:\xampp\htdocs\layouts\tibiacom\layout.phpon line 637 Agradeço. @EDIT Já tentei essa porém não funcionou CREATE TABLE IF NOT EXISTS `server_reports` ( `id` int(11) NOT NULL AUTO_INCREMENT, `world_id` tinyint(2) unsigned NOT NULL DEFAULT '0', `player_id` int(11) NOT NULL DEFAULT '1', `posx` int(11) NOT NULL DEFAULT '0', `posy` int(11) NOT NULL DEFAULT '0', `posz` int(11) NOT NULL DEFAULT '0', `timestamp` bigint(20) NOT NULL DEFAULT '0', `report` text NOT NULL, `reads` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `world_id` (`world_id`), KEY `reads` (`reads`), KEY `player_id` (`player_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; Editado Outubro 12, 2014 10 anos por Wiz Khalifa (veja o histórico de edições) LONADOVISK ♥
Postado Outubro 13, 2014 10 anos Solução Cara, a query certa é: CREATE TABLE IF NOT EXISTS `reports` ( `id` int(20) NOT NULL auto_increment, `player_id` varchar(30) NOT NULL, `date` varchar(30) NOT NULL, `reason` varchar(255) NOT NULL, `description` varchar(100) NOT NULL, KEY `id` (`id`) ) Fui útil? Realmente útil? Obrigado! Não sabe como compensar? Doe quanto puder... Seu ato é o que vale!
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.