Jump to content
Fórum Script Brasil
  • 0

O que há de errado? :s


Tiago Paza
 Share

Question

Boa tarde galera da scriptBrasil, estou com um problema em meu código porém não sei o que é... Pois não é informado...

Vou deixar abaixo um print do que apresenta e do meu banco de dados até pra ficar mais fácil pra compreender... e também a minha pagina index.php junto com meu configuration.php

Se alguém souber como solucionar, vou ser muito grato.

http://i.imgur.com/iajveUD.png

Esse é o problema aparece apenas o background mas não o conteúdo e não exibe nenhuma mensagem de erro porém está localizando o banco de dados pois o titulo é encontrado...

http://i.imgur.com/VjnpA6x.png

Acima meu banco de dados pra ver que realmente está funcionando e em meus scripts também não apresentam erros...

Meu index.php:

<?php
require_once('configuration.php');
$query = "SELECT * FROM hr_configs";
$result = mysql_query($query);
while ( $play = mysql_fetch_array ( $result ) ) {
    $titulo = $play ["titulo"];
    $ip = $play ["ip"];
    $porta = $play ["porta"];
    $nomeradio = $play ["nomeradio"];
    $twitter = $play ["twitter"];
    $facebook = $play ["facebook"];
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Description"
    content="Rádio Deabo">
<meta name="Keywords"
    content="radio, sound, som, audio, play, stop, music, musica, qualidade, ritmo, auto, volume">
<meta name="Distribution" content="Global">
<meta name="Author"
    content="Desenvolvido por: Bernardo Feldes, Débora Sielski e Tiago Paza">
<meta name="Robots" content="index,follow">
<link href="css/dcentral.css" rel="stylesheet" type="text/css">
<!--[if lte IE 8]>
<link href="css/dcentral-ie.css" rel="stylesheet" type="text/css">
<![endif]-->
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/coin-slider.min.js"></script>
<title>
<?php echo $code->bbcode(''.$titulo.''); ?>
</title>
</head>
<body>
    <div id="all">
        <div id="banner">
            <div id="toolbar">
                <p>&raquo; Seja Bem-Vindo(a) a <?php echo $code->bbcode(''.$titulo.''); ?></p>
                <ul>
                    <li><a href="<?php $twitter;?>"
                        title="Siga a <?php
                        echo $code->bbcode ( '' . $nomeradio . '' );
                        ?> no Twitter."><img src="images/icons/twitter.gif" width="21"
                            height="21" alt="Twitter"></a></li>
                    <li><a href="<?php $facebook;?>"
                        title="Conecte-se ao Facebook da
            <?php
            
            echo $code->bbcode ( '' . $nomeradio . '' );
            ?>."><img src="images/icons/facebook.gif" width="21" height="21"
                            alt="Facebook"></a></li>
                    <li></li>
                </ul>
            </div>
        </div>
        <div id="menu">
            <div id="connector">
                <!-- CONECÇAO -->
            </div>
            <ul>
                <li class="left">
                    <ul>
                        <li><a href="?p=home">Home</a></li>
                        <li><a href="?p=chat">Chat</a></li>
                        <li><a href="?p=about">A R&aacute;dio</a></li>
                        <li><a href="?p=news">Not&iacute;cias &amp; Mat&eacute;rias</a></li>
                    </ul>
                </li>
                <li id="sound">
                    <!-- SOM DO MENU -->
                </li>
                <li class="right">
                    <ul>
                        <li><a href="?p=clube">Clube</a></li>
                        <li><a href="?p=promotions">Promo&ccedil;&otilde;es</a></li>
                        <li><a href="?p=players">Em seu site!</a></li>
                        <li><a href="?p=contact">Contato</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <div id="slide">
            <div id="coin-slider">
                <!-- IMAGEM SLIDE -->
                <a href="#"><img src="images/slider/slide01.jpg" width="685"
                    height="175" alt=""></a> <a href="#"><img
                    src="images/slider/slide01.jpg" width="685" height="175" alt=""></a>
            </div>
        </div>
        <div id="box-player">
            <div id="player">
                <div id="box-info">
<?php
                                
                                $sql = mysql_query ( "SELECT loginid FROM hr_formulario" );
                                $resBusca_config = mysql_fetch_assoc ( $sql );
                                $locutoronline = $resBusca_config ['loginid'];
                                $buscarnick = mysql_query ( "SELECT * FROM hr_usuarios WHERE id='$locutoronline' LIMIT 1" );
                                while ( $loc = mysql_fetch_assoc ( $buscarnick ) ) {
                                    $nick = $loc ["nick"];
                                    $programa = $loc ["programa"];
                                    $foto = $loc ["foto"];
                                    $id = $loc ["id"];
                                    ?>
<img src="<?php $foto;?>" width="89" height="89" alt="no-image">
                    <ul>
                        <!-- PLAYER INFORMAÇÕES -->
                        <li><span>Programa:</span>
<?php $programa;?>
</li>
                        <li><span>Apresentador:</span>
<?php $nick;?>
</li>
                        <li><span>Ouvintes:</span>
<?php
                                    $fp = @fsockopen ( $ip, $porta, $errno, $errstr, 1 );
                                    if (! $fp) {
                                        $listeners = "0";
                                    } else {
                                        fputs ( $fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n" );
                                        while ( ! feof ( $fp ) ) {
                                            $info = fgets ( $fp );
                                        }
                                        $split = explode ( ',', $info );
                                        if ($split [1] == "0") {
                                            $listeners = "0";
                                        } else {
                                            $listeners = $split [0];
                                        }
                                    }
                                    echo $listeners;
                                    ?>
</li>
                        <li><span>&Uacute;Ultimo locutor no ar foi no dia</span></li>
                        <li>
<?php
                                    
                                    $query = "SELECT * FROM hr_formulario";
                                    $result = mysql_query ( $query, $conecta );
                                    while ( $effect = mysql_fetch_array ( $result ) ) {
                                        $ulog = $effect ["ulog"];
                                        echo ("" . $ulog . "");
                                    }
                                    ?>
</li>
                    </ul>
<?php
                                }
                                ?>
</div>
                <ul id="buttons-player">
                    <!-- BOTÕES PLAYER -->
                    <li><a href="player.html" target="Player"><img
                            src="images/icons/play.png" width="32" height="32"></a></li>
                    <li><a href="stop.html" target="Player"><img
                            src="images/icons/stop.png" width="26" height="25"></a></li>
                    <li><a href="?p=clube/pedido" title="Fa&ccedil;a seu pedido!"><img
                            src="images/design/requests.png" width="91" height="24"
                            alt="Pedidos"></a></li>
                    <li><a href="#" title="Ouvir com o Windows Media Player"><img
                            src="images/icons/wmp.png" width="16" height="17" alt="WMP"></a></li>
                    <li><a href="#" title="Ouvir com o Winamp"><img
                            src="images/icons/winamp.png" width="17" height="16" alt="Winamp"></a></li>
                </ul>
            </div>
            <marquee id="info-music" scrollamount="3" onMouseOver="stop()"
                onMouseOut="start()" scrolldelay="100">
<?php
                $ip = "" . $ip . "";
                $port = "" . $porta . "";
                $fp = @fsockopen ( $ip, $port, $errno, $errstr, 1 );
                if (! $fp) {
                    $title = "Offline ";
                } else {
                    fputs ( $fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n" );
                    while ( ! feof ( $fp ) ) {
                        $info = fgets ( $fp );
                    }
                    $info = str_replace ( '</body></html>', "", $info );
                    $split = explode ( ',', $info );
                    if (empty ( $split [6] )) {
                        $title = "A música atual não está disponível";
                    } else {
                        $count = count ( $split );
                        $i = "6";
                        while ( $i <= $count ) {
                            if ($i > 6) {
                                $title .= ", " . $split [$i];
                            } else {
                                $title .= $split [$i];
                            }
                            $i ++;
                        }
                    }
                }
                $title = substr ( $title, 0, - 2 );
                echo $title;
                ?>
</marquee>
        </div>
        <div id="section">
            <!-- INCLUIR INICIAL -->
<?php
                
                $Conteudo = $_REQUEST ['p'];
                if ($Conteudo == '') {
                    $Conteudo = 'home';
                }
                ?>
<?php
                if (file_exists ( 'pages/' . $Conteudo . '.php' )) {
                    require ('pages/' . $Conteudo . '.php');
                } else {
                    require ('pages/404.php');
                }
                ?>
            <!-- INCLUIR FINAL -->
            <div class="line-separator">
                <!-- LINHA SEPARADORA -->
            </div>
            <div class="bottom-box">
                <ul id="min-adsense">
<?php
                                $query = "SELECT * FROM hr_parceiros WHERE tipo='1'";
                                $result = mysql_query ( $query );
                                $play = mysql_num_rows ( $result );
                                if ($play <= "0") {
'<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>
<li><a title="Seu Site"><img src="images/adsense/95x35.jpg" width="96" height="35" alt="95x30"></a></li>';
                                }
                                ?>
<?php
                                $query = "SELECT * FROM hr_parceiros WHERE tipo='1' ORDER BY id LIMIT 12";
                                $result = mysql_query ( $query, $conecta );
                                while ( $play = mysql_fetch_array ( $result ) ) {
                                    $id = $play ["id"];
                                    $nome = $play ["nome"];
                                    $banner = $play ["banner"];
                                    $link = $play ["link"];
                                    $tipo = $play ["tipo"];
                                    $acessos = $play ["acessos"];
                                    $n = $i + 1;
                                    $i ++;
                                    ?>
<li><a href="ver.php?&id=<?=$id;?>" target="_blank"
                        title="<?=$nome;?>"><img src="<?=$banner;?>" width="96"
                            height="35" alt="95x30"></a></li>
<?php
         } ?>
</ul>
            </div>
            <div class="bottom-box">
<?php
                        $query = "SELECT * FROM hr_parceiros WHERE tipo='5'";
                        $result = mysql_query ( $query );
                        $play = mysql_num_rows ( $result );
                        if ($play <= "0") {
                            echo '<a title="Publicidade VIP"><img src="images/adsense/450x140.jpg" width="450" height="140" alt="450x140">';
                        }
                        ?>
<?php
                        $query = "SELECT * FROM hr_parceiros WHERE tipo='5' ORDER BY id LIMIT 1";
                        $result = mysql_query ( $query, $conecta );
                        while ( $play = mysql_fetch_array ( $result ) ) {
                            $id = $play ["id"];
                            $nome = $play ["nome"];
                            $banner = $play ["banner"];
                            $link = $play ["link"];
                            $tipo = $play ["tipo"];
                            $acessos = $play ["acessos"];
                            $n = $i + 1;
                            $i ++;
                            ?>
<a href="ver.php?&id=<?php $id?>" target="_blank"
                    title="<?php $nome?>"><img src="<?= $banner?>" width="450"
                    height="140" alt="450x140"></a>
<?php
     } ?>
</div>
        </div>
        <div id="footer">
            <!-- RODAPÉ -->
            <span class="left">&copy;
<?php date('Y');
    ?>
R&aacute;dio <?php
                
                echo $code->bbcode ( '' . $Deabo . '' );
                ?> - Todos os direitos reservados.</span>
            <!-- RODAPÉ CENTRAL -->
            <span class="left" id="center">Plágio é crime, não copie este código
                sem autorização dos desenvolvedores.</span> <span class="right"><br>
            </span>Desenvolvido e codificado por:
<a href="https://www.facebook.com/bernardo.feldens.1">
                Bernardo Feldens</a>, 
<a href="https://www.facebook.com/debora.sielski.1">Débora
                Sielski</a> e 
<a href="https://www.facebook.com/tiago.paza">Tiago Paza</a>.
        </div>
    </div>
</body>
</html>

Meu configuration.php ( criei pro index buscar dele os dados do mySQL)

<?php

$hr_host = "localhost";
$hr_usuario = "root";
$hr_senha = "";
$hr_database = "dance";

$conecta = mysql_connect($hr_host,$hr_usuario,$hr_senha) or die("Não foi possível realizar a conexão!");

$seleciona = mysql_select_db($hr_database) or die("Erro!");

?>

Obrigado, desde já.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.7k
×
×
  • Create New...