Unknown column 'hotel' in 'where clause'

+2
xSend
superharry
6 participantes

superharry superharry  • 03.01.16 18:18

Unknown column 'hotel' in 'where clause' Empty Unknown column 'hotel' in 'where clause' 03.01.16 18:18

Print de meu erro: http://prntscr.com/9lph81

Qual é meu erro: Unknown column 'hotel' in 'where clause'

CMS Que estou utilizando: Hélio CMS 4

SWF que estou utilizando: PSWF 1.5

Versão de meu hotel: NewCrypto

Se escolheu outros, especifique:

Comentários adicionais: Sempre quando eu entro na pagina onde era para ser noticias aparece esse erro

xSend xSend  • 03.01.16 19:08

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:08

Poderia me mandar sua página de notícias por favor?

iJhefeX iJhefeX  • 03.01.16 19:14

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:14

Manda a notice.php e me diz qual DB estas a usar

superharry superharry  • 03.01.16 19:16

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:16

xSend escreveu:Poderia me mandar sua página de notícias por favor?

Se você diz o arquivo php ta ai:


Código:
<?php
require_once ('data_classes/server-data.php_data_classes-core.php.php');
$news_id = FilterText($_GET['web-articles-id']);
$main_sql = mysql_query("SELECT * FROM cms_news WHERE id = '".$news_id."'") or die(mysql_error());
$article_exists = mysql_num_rows($main_sql);

if($article_exists == "1"){
   $news = mysql_fetch_assoc($main_sql);
} else {
   $main_sql = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC") or die(mysql_error());
   $news = mysql_fetch_assoc($main_sql);
   $news_id = $news['id'];
}
$loginto="news/$news[id]";
require_once ('templates/login.php');
$pagename="Notícias";
require_once ('templates/community_header.php');
?>
                <nav class="navigation">
                    <div class="navigation__wrapper">
                        <ul class="navigation__menu">
                            <li class="navigation__menu__item">
                                <a href="/" class="navigation__link navigation__link--home">Home</a></li>
                            <li class="navigation__menu__item">
                                <a href="/community" class="navigation__link navigation__link--community">Comunidade</a></li>
                            <li class="navigation__menu__item">
                                <a href="/playing-habbo" class="navigation__link navigation__link--playing-habbo">Jogando <?php echo $hotelname; ?></a></li>
                            <li class="navigation__menu__item navigation__menu__item--aside">
                            </li>
                            <?php if(!$logged_in){ ?>
                            <li class="navigation__menu__item navigation__menu__item--aside"><a href="#" data-toggle="modal" data-target="#login" class="navigation__login">Login</a></li>
                            <?php }else{ ?>
                            <li class="navigation__menu__item navigation__menu__item--aside"></li>
                            <li class="navigation__menu__item navigation__menu__item--aside">
                                <a href="/hotel" class="hotel-button--navigation navigation__link--hotel hotel-button">
                                    <span class="hotel-button__text">Hotel</span></a>
                            </li>
                            <?php } ?>
                            <li class="navigation__menu__item navigation__menu__item--aside">
                            </li>
                        </ul>
                    </div>
                </nav>
                <div class="wrapper"></div>
                </div>
            </div>
            <section>
                <div class="wrapper">
                    <div class="main">
                        <article class="habbo-web-pages">
                            <h1><?php echo (HelioText($news['title'], true)); ?></h1>
                            <time><?php echo date('d/m/Y', $news['published']); ?></time>
                            <p><strong><?php echo (HelioText($news['subtitle'], true)); ?></strong></p>
<?php echo (HelioText($news['textmayor'], true)); ?>
                            <p><strong><?php echo $hotelname; ?> Staff</strong></p>
                            <blockquote>
                                <p>Veja mais notícias na <a href="/">Home</a>!</p>
                            </blockquote>
                        </article>
                    </div>
                    <div class="aside aside--push-down">
                        <article class="plain-box habbo-web-pages">
                            <h4>Novo web FAQ</h4>
                            <p>Saiba mais sobre todos os novos recursos interessantes e o que mais você pode esperar no <a target="_blank" ng-href="https://help.habbo.com/entries/90238258-Introducing-the-NEW-Habbo-web" href="https://help.habbo.com/entries/90238258-Introducing-the-NEW-Habbo-web">FAQ</a>!</p>
                        </article>
                    </div>
                </div>
            </section>
        </ui-view>
        <div class="footer__push"></div>
    </section>
<?php require_once ('templates/community_footer.php'); ?>
    <script src="http://<?php echo $site; ?>/habbo-web/am/scripts.js"></script>
</body>

</html>
<?php if(!$logged_in){ ?>
<?php require_once ('templates/modal_login.php'); ?>
<?php }else{ ?>
<?php } ?>

superharry superharry  • 03.01.16 19:16

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:16

iJhefeX escreveu:Manda a notice.php e me diz qual DB estas a usar

Mandei para o carinha de cima ai, eu uso a db do Azure 190 original

iJhefeX iJhefeX  • 03.01.16 19:29

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:29

Me envia o Download da DB? O erro é provável que seja pela falta da Coluna "hotel" ou da "news"

superharry superharry  • 03.01.16 19:36

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:36

Eu preciso de uma db compativel com ela pq a do Azure vem bastante incompleta

iRustyyy iRustyyy  • 03.01.16 19:40

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:40

iJhefeX Você tem alguma DB compatível com Azure 2.0 e com essa CMS? E também que seja bem atualizada?

The Flash The Flash  • 03.01.16 19:43

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:43

[alerta=Unknown column 'hotel' in 'where clause' TXHFkMB
Usuário: superharry
Motivo: Doublepost
Não será punido por ser novato![/alerta]

Execute a seguitne sql:


ALTER table `cms_news` ADD `Hotel` TEXT NOT NULL

superharry superharry  • 03.01.16 19:51

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 19:51

Megvcitor... escreveu:
[alerta=Unknown column 'hotel' in 'where clause' TXHFkMB
Usuário: superharry
Motivo: Doublepost
Não será punido por ser novato![/alerta]

Execute a seguitne sql:


ALTER table  `cms_news` ADD  `Hotel` TEXT NOT NULL

Valeu, so q apareceu outro vc sabe como resolve tbm? http://prntscr.com/9lqrsx

iRustyyy iRustyyy  • 03.01.16 20:01

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 20:01

A Hélio CMS 4 tem um Painel de Controle péssimo. Não da nem para criar uma Noticia!

Tem como trocar?

The Flash The Flash  • 03.01.16 20:02

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 20:02

Execute:

CREATE table `rankevento`

iJhefeX iJhefeX  • 03.01.16 20:05

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 20:05

Faz o que o Meg disse, ele falou primeiro que eu er1
@off
Rustyyy, cria tópico para que possamos responder :interessante:

iRustyyy iRustyyy  • 03.01.16 20:10

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 20:10

Essa tabela já existe em meu banco de dados. Mesmo assim eu crio uma noticia e não aparece nenhuma.

Pode ajudar?

superharry superharry  • 03.01.16 20:42

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 03.01.16 20:42

Megvcitor... escreveu:Execute:

CREATE table  `rankevento`

Mensagens do MySQL : Unknown column 'hotel' in 'where clause' Dot
Código:
#1113 - A tab[b][/b]le must have at least 1 column 

The Flash The Flash  • 04.01.16 8:29

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 04.01.16 8:29

superharry escreveu:
Megvcitor... escreveu:Execute:

CREATE table  `rankevento`

Mensagens do MySQL : Unknown column 'hotel' in 'where clause' Dot
Código:
#1113 - A tab[b][/b]le must have at least 1 column 

Execute esse:

CREATE table  `rankevento`

O fórum as vezes dá uma bugada, então se aparecer isso no código acima, remova:
Código:
[b][/b]

lai0n lai0n  • 04.01.16 22:33

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 04.01.16 22:33

[aviso=@moderação ] O autor do tópico tem 24 horas para apresentar uma resposta!. [/aviso]

superharry superharry  • 05.01.16 23:23

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 05.01.16 23:23

Pode fechar, resolvido

iJhefeX iJhefeX  • 05.01.16 23:26

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause' 05.01.16 23:26

[alerta=Unknown column 'hotel' in 'where clause' SsYaM5b
Motivo: Autor Satisfeito [/alerta]

Conteúdo patrocinado  • 

Unknown column 'hotel' in 'where clause' Empty Re: Unknown column 'hotel' in 'where clause'

Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.