lost_again Posted March 16, 2016 Share Posted March 16, 2016 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. <?phpecho "<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> Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted March 16, 2016 Share Posted March 16, 2016 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 Quote Link to comment Share on other sites More sharing options...
lost_again Posted March 16, 2016 Author Share Posted March 16, 2016 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 Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted March 16, 2016 Share Posted March 16, 2016 Since that doesn't seem like a data table, you could look into using CSS to create an image gallery effect. Perhaps the following article will help: http://alistapart.com/article/practicalcss Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.