Jump to content

thriller372

New Members
  • Posts

    4
  • Joined

  • Last visited

thriller372's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Fantastic and so simple works a treat, I'd spent nearly two days on this (I like to try and work it out for myself) and got nowhere.You lot make it all seem so simple Cheers
  2. Hi,I have an image url stored in a database, I can display the image no problem using this code: echo '<td><img src="'.$row['thumb'].'"></td>'; I am trying to use a variable as a link when you click on the image, as so: <a href='showthumb.php?thumb=$clientthumb'></a> I can use the image as a link but the $clienthumb variable does not show the value of the variable, for example: I get the image with a link of showthumb.php?thumb=$clientthumb but I need The image with a link of showthumb.php?thumb=1 (the number one is $clientthumb value) echo '<td><img src="'.$row['thumb'].'"></td>'; <a href='showthumb.php?thumb=$clientthumb'></a>
  3. Thanks for the quick reply and FIX !!! I can't believe it was that easy, I guess knowledge is power. Cheers much appreciated (I did try and like this but have reached quota but I will sort that out)
  4. I have created a container & it displays the contents of a folder (images) as thumbnails but the thumbnails display outside the container. So is there anyway I can keep the thumbnails inside the container. I can display seven thumbnails inside the container but then I need to start a new line to keep within the container. Appreciate any help <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Basic Demo</title> </head> <body> <!-- start container !--> <div style="position:absolute;left:27%;top:19%;width:640px;height:543px;border:1px solid #A1BADA;border-radius: 15px;background: #DFDFDF;z-index:-1;"></div> <!-- end container !--> <style> div.numstyle { position: absolute; top:25%; left:28%;font-size:40px;clear:both; } img { display: inline-block; margin: 15px 15px 15px 15px; max-width: 60px; height: auto; outline: outset; } img:active { max-width: 15%; } </style> <div class="numstyle"> <?php $folder = 'images/'; $filetype = '*.*'; $files = glob($folder.$filetype); $count = count($files); for ($i = 0; $i < $count; $i++) { echo '<tr><td>'; echo '<a name="'.$i.'" href="#'.$i.'"><img src="'.$files[$i].'" /></a>'; echo '</td></tr>'; } ?> </div> </body> </html> I'm not worried that it's not pretty I just need to know if there's a way of solving this problem. Thanks
×
×
  • 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.