Solarpitch Posted December 27, 2006 Share Posted December 27, 2006 Hey Guys,Just wondering if any of you could help me with the following. Unfortunatly this kind of stuff falls well above my ability to implement in PHP! The example below explains it all. When I call this image to a page it will be part of an ad. Each add will have 3 images..ad_id = 3 image_1.jpg image_2.jpg image_3.jpg ... and so onIs there a way you can use a "pagination" type method to display the images as I've shown? My aim is to have it just like my example, with the main image been shown in a div 200 * 200 and then 2 links to the other 2. When 1 of the other 2 are selected, it displays that into the main div.emmm . . hope I explained that ok.[url=http://xs.to][img]http://xs110.xs.to/xs110/06523/example5.gif[/img][/url] Link to comment https://forums.phpfreaks.com/topic/31998-pagination-type-method-but-with-images/ Share on other sites More sharing options...
trq Posted December 27, 2006 Share Posted December 27, 2006 [quote]Is there a way you can use a "pagination" type method to display the images as I've shown?[/quote]Are these images or there paths stored in a database? Link to comment https://forums.phpfreaks.com/topic/31998-pagination-type-method-but-with-images/#findComment-148507 Share on other sites More sharing options...
Solarpitch Posted December 27, 2006 Author Share Posted December 27, 2006 Hi, Yes they are. Images are in a folder and paths in the DB Link to comment https://forums.phpfreaks.com/topic/31998-pagination-type-method-but-with-images/#findComment-148508 Share on other sites More sharing options...
trq Posted December 27, 2006 Share Posted December 27, 2006 Then any tutorial on 'pagination' should suffice. Link to comment https://forums.phpfreaks.com/topic/31998-pagination-type-method-but-with-images/#findComment-148513 Share on other sites More sharing options...
Solarpitch Posted December 27, 2006 Author Share Posted December 27, 2006 Yeah,I have pagination implemented already in my site, and it works perfect! But its a little different using images. This will force the "page to change" thus, changing the image but removing the rest of the data from the page. Would there be an eaiser way to achieve this? Link to comment https://forums.phpfreaks.com/topic/31998-pagination-type-method-but-with-images/#findComment-148516 Share on other sites More sharing options...
trq Posted December 27, 2006 Share Posted December 27, 2006 [quote]But its a little different using images[/quote]No its not. Its just that your only displaying one record (image) at a time instead of say 10. If youve allready got pagination working in other areas of your site it should be quite simple to port that some code over to this solution. Link to comment https://forums.phpfreaks.com/topic/31998-pagination-type-method-but-with-images/#findComment-148526 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.