Jump to content
Fórum Script Brasil
  • 0

LightBox e PHP


uilhian

Question

Bom dia,

Bom tenho esse código abaixo funciona tudo mais,

<div id="CONTEUDO">
<?php
   $i = 0;
   foreach (glob("imagens/obras/01/*.jpg") as $arquivo) {
  {
     $class =  $i>=1 ? ' style="display: none;"' : '';
?>
                <div class="thumb"<?php echo $class; ?>><a href="<?php echo $arquivo; ?>" rel="lightbox[roadtrip]"><img src="thumb.php?img=<?php echo $arquivo; ?>" /></a></div>

<?php 
        $i++;
    }
?>
                <div class="clear"></div>
        </div>

mas ae to com o seguinte problema cada "PASTA/Diretorio" é uma categoria que representa uma div com imagem.

Gostaria de saber como faço que nem no caso conforme eu ir adicionando "PASTA/Diretorio" ele ler individualmente cada pasta.

não sei se deu pra entender mas desde já muito obrigado

Edited by uilhian
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.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652.1k
×
×
  • Create New...