Ir para conteúdo
Banner com Efeitos

Featured Replies

  • 2 months later...
  • Respostas 12
  • Visualizações 6.2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @WalaceBz pode me ajudar? Eu estava com o mesmo problema, eu conseguia até adicionar os itens no shop do meu Gesior E agora eu tentei executar esses dois comandos na db do meu servidor "z_sh

  • 1 year later...
Postado

@WalaceBz pode me ajudar?

Eu estava com o mesmo problema, eu conseguia até adicionar os itens no shop do meu Gesior

E agora eu tentei executar esses dois comandos na db do meu servidor "z_shop_history_item `z_shop_offer"

 

Agora eu não consigo mais adicionar itens no meu Shop, pois aparece o seguinte erro:

"Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pid' in 'field list'' in C:\xampp\htdocs\shopadmin.php:73 Stack trace: #0 C:\xampp\htdocs\shopadmin.php(73): PDO->query('INSERT INTO `z_...') #1 C:\xampp\htdocs\index.php(323): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\shopadmin.php on line 73"

 

Obs: Segue a linha 73 do meu arquivo shopadmin.php

$SQL->query('INSERT INTO `z_shop_offer` (id, points, itemid1, count1, itemid2, count2, offer_type, offer_description, offer_name, pid) VALUES (NULL, '.$SQL->quote($shop_points).', '.$SQL->quote($shop_itemid1).', '.$SQL->quote($shop_count1).', '.$SQL->quote($shop_itemid2).', '.$SQL->quote($shop_count2).', '.$SQL->quote($shop_offer_type).', '.$SQL->quote($shop_offer_description).', '.$SQL->quote($shop_offer_name).', 0)');
            $main_content .= '<center><h2><font color="red">Added to Shop:</font></h2></center><hr/>

 

O que eu posso fazer? tem como desfazer o comando pra voltar na condição anterior?

Obrigado

 

Pra facilitar, segue os comandos que eu executei:

z_shop_history_item:

DROP TABLE IF EXISTS `z_shop_history_item`; CREATE TABLE IF NOT EXISTS `z_shop_history_item` ( `id` int(11) NOT NULL AUTO_INCREMENT, `to_name` varchar(255) NOT NULL DEFAULT '0', `to_account` int(11) NOT NULL DEFAULT '0', `from_nick` varchar(255) NOT NULL, `from_account` int(11) NOT NULL DEFAULT '0', `price` int(11) NOT NULL DEFAULT '0', `offer_id` varchar(255) NOT NULL DEFAULT '', `trans_state` varchar(255) NOT NULL, `trans_start` int(11) NOT NULL DEFAULT '0', `trans_real` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

 

z_shop_offer:

DROP TABLE IF EXISTS `z_shop_offer`; CREATE TABLE IF NOT EXISTS `z_shop_offer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `points` int(11) NOT NULL DEFAULT '0', `itemid1` int(11) NOT NULL DEFAULT '0', `count1` int(11) NOT NULL DEFAULT '0', `itemid2` int(11) NOT NULL DEFAULT '0', `count2` int(11) NOT NULL DEFAULT '0', `offer_type` varchar(255) DEFAULT NULL, `offer_description` text NOT NULL, `offer_name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

 

Editado por Dornellas
informações adicionais (veja o histórico de edições)

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