Jump to content

Recommended Posts

This Code works good to display name of Pic.jpg , And The Picture And The Same Name.zip

 

PicName.jpg

Picture

Pic Name.zip

 

 I would like to make 2 columns if possible,and when clicking on picture it would download the .zip file.

But the 2 columns is more important.

thanks ahead of time for help.

 

 

 

<?php
echo "<BR><B><BR>Click On Pic Name  .ZIP To Download<BR></B>";

$files = glob("*.*");
for ($i=-1; $i<count($files); $i++)
{
    $num = $files[$i];
      if($num=='index.php'){$num='';}
                   
     echo '<a href="'.$num.'">'.$num.'<br><img src="'.$num.'""height=200 width=400" alt="" />  '."<br />";

}
 
?><BR><BR></center>

Could you clarify what you mean by "make 2 columns"? What type of information are you looking to display in those columns?

 

Note that you can use HTML's <table> tag to add data tables. More information can be found here:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table

I tried to use html table got a blank page what im trying to get is

 

this is what i have

 

PicName.jpg                          

Picture                  

Pic Name.zip 

 

and this is what i would like to have, i try $col=2  but nothing happen       

 

PicName.jpg            PicName.jpg               

Picture                    Picture

Pic Name.zip           Pic Name.zip

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.