• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Gesior erro in latestnews.php

marcosb

New Member
Joined
Jul 29, 2012
Messages
13
Solutions
1
Reaction score
1
what's up guys. Could someone help me with this error in gesior 2012?

Code:
Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\pages\latestnews.php on line 267


line 267
Code:
//FEATURED ARTICLE
$featured_article = $SQL->query("SELECT * FROM z_featured_article ORDER BY id DESC LIMIT 1")->fetchAll();

if(isset($featured_article[0]))
    {
        foreach($featured_article as $featured)
        {

            $news_content .= '
                <div id="FeaturedArticle" class="Box">
                    <div class="Corner-tl" style="background-image:url('.$layout_name.'/images/content/corner-tl.gif);"></div>
                    <div class="Corner-tr" style="background-image:url('.$layout_name.'/images/content/corner-tr.gif);"></div>
                    <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div>
                    <div class="BorderTitleText" style="background-image:url('.$layout_name.'/images/content/title-background-green.gif);"></div>
                    <img id="ContentBoxHeadline" class="Title" src="'.$layout_name.'/images/header/headline-featuredarticle.gif" alt="Contentbox headline" />
                    <div class="Border_2">
                        <div class="Border_3">
                            <div class="BoxContent" style="background-image:url('.$layout_name.'/images/content/scroll.gif);">
                                <div id="TeaserThumbnail">';
                                $news_content .= '
                                        <img src="'.$layout_name.'/images/news/announcement.jpg" width="150" height="100" border=0 alt="" />';
                                if(!empty($featured['read_more'])){
                                $news_content .= '
                                    </a>';
                                    }
                            $news_content .= '
                                </div>';
                                if(!empty($featured['read_more'])){
                                $news_content .= '
                                <a id="Link" href="'.$featured['read_more'].'"></a>';
                                }
                               
                                                                $news_content .= '
                                                                <div id="TeaserText">
                                                                        <b>IP:</b> HardStyller.com</font> - <b>VERSION:</b> 8.60 - <b>PORT:</b> 7171 <b><a href="./downloads/pvp.exe">CLIENTE PR&Oacute;PRIO 8.60</a></b><br><br>
                                                                        &nbsp&nbsp&nbsp&nbsp&nbsp&nbspUtilizamos <b>Mapa Styller</b> várias quests, hunts, eventos e sistemas que irão tornar esse jogo um <b>Novo</b> mundo para vocês tibianos.<br>
                                                                        Faça parte dessa história, marque sua presença, e chame seu Team!!! Você não pode perder !!!<br>
                                                                        Possuímos <b>Bônus para iniciantes</b> no baú do templo, e <b>Dias Donate no Shop Guild</b> para times que entrarem.. Aproveite !!<br>
                                                                </div>       
                            </div>
                        </div>
                    </div>
                    <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div>
                    <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url('.$layout_name.'/images/content/corner-bl.gif);"></div></div>
                    <div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url('.$layout_name.'/images/content/corner-br.gif);"></div></div>
                </div>
            ';
        }
    }
//FEATURED ARTICLE END
 
Back
Top