Jump to content
Fórum Script Brasil
  • 0

Tem como fechar a include?

Wagner Carlos


E o seguinte, eu estou tentando criar menus no meu template, dai surgiu o seguinte erro, eu tive que por include conexao.php para poder pegar os dados, só aque agora as outroas páginas ficaram todas bugadas, eu queria saber se tem como fechar a include para parar o funcionamento dela até em um certo ponto?


include "../../conexao.php";

$sql = mysql_query("SELECT * FROM menu_horizontal ORDER BY id DESC LIMIT 10");

while($exibir = mysql_fetch_array($sql)) {

$menu = $exibir['menu'];

$id = $exibir['id'];


<?php echo "<li><a href=\"../../secao/pagina/view.php?pag=$id\">$menu</a></li>"; } ?>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

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

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.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...