Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $pageTitle = "Banana Theives | music";
- include('header.php');
- ?>
- <div id="mainMid">
- <br/><br/>
- <h1 class="fLeft">Picture gallery</h1>
- <h2>work in progress... for now, here are the band members...</h2>
- <?include('banner.php');?>
- <br/>
- <?
- //path to directory to scan
- $dirPic = "images/gallery/";
- $dirThumb = "images/gallery/thumbs/";
- //get all image files with a .jpg extension.
- $imagPic = glob($dirPic. "*.jpg");
- //print each file name
- echo "<div id='picWrap'>";
- $cnt = 0; $picPerRow =999;
- foreach($imagPic as $image){
- $cnt ++;
- echo "<a href='$image'><img src='$image' class='thumb' 'alt='$image'/></a>";
- //echo $image;
- if ($cnt == $picPerRow){
- echo "<br/><br/>";
- $cnt = 0;
- }
- }
- echo "</div>";
- ?>
- </div>
- <? include('footer.php');?>
Add Comment
Please, Sign In to add comment