| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | need some help.. trying to display images from a folder. hey i have a folder with the following files 1002.jpg 1002_b.jpg 1003.jpg 1003_b.jpg 1004.jpg 1004_b.jpg I'd like to display all the "non _b" images on a page. They're thumbnails. Then I'd like them to be linked to the _b version. There has to be an easy way to do this in PHP.. Can you point me in the right direction? Thanks..
__________________ . |
| |
| | #2 (permalink) |
| NamePros Member | Depends on how you want to present the images, but this is one way to do it: <a href="1002_b.jpg"><img src="1002.jpg" /></a>
__________________ Organic beauty www.onlyorganic.no |
| |
| | #3 (permalink) | |
| Danltn.com | Quote:
PHP Code: | |
| |
| | #4 (permalink) |
| NamePros Member | That would make it more dynamic and easier if you intend to add more pictures later. I just didn't see the need to make it harder than it had to be when there were so few images.
__________________ Organic beauty www.onlyorganic.no |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |