Jump to content

Get File error.


Mod-Jay

Recommended Posts

I have no idea whats wrong with this. I'm trying to make it so i can collect all the .jpg images in a the $servername's folder to display as a thumbnail set up with javascript and css.

 

<?php if(!empty($images)) { ?>
<div class="highslide-gallery">
<?php

$pic_listing = mysql_query("SELECT * FROM toplist WHERE id='". $id ."'") or die(mysql_error()); 
    while($serverpic = mysql_fetch_array($pic_listing)) 
{
//		$picture1 = $serverpic["picture1"];
//		$picture1info = $serverpic["picture1info"];
	$servername = $serverpic["servername"];
}

$directory = "images/serverpic/" . $servername . "";
$images = glob("" . $directory . "*.jpg");
foreach($images as $image) 
{
?>
<a href="images/serverpic/<?php echo $servername . "/" . $image; ?>" class="highslide" onclick="return hs.expand(this)">
<img src="images/serverpic/<?php echo $servername . "/" . $image; ?>" alt="Highslide JS" width="100" height="100" title="Click to enlarge" />
</a>
<div class="highslide-caption">
<?php } // echo $picture1info; ?>
</div>	
<?php
?>
</div> 
<?php } ?>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.