waynem801 Posted January 20, 2008 Share Posted January 20, 2008 Hi, I wanted to know how i can go about making a photo album like this one... Example : http://zspotlight.com/myZgalleries/Pictures.aspx?E=6900&GI=f83ef22e-2501-4307-846f-43b1f5cf7820 As you can see, After you click on one of the photo's it opens up into a pop up thingy, and then you can browse through all the photos in that album with the arrows, I really like how it goes in order and how each photo causes a refresh of the pop up box, How can I clone this? Thanks, Wayne Quote Link to comment https://forums.phpfreaks.com/topic/86963-solved-how-do-i-build-photo-album-like-this-one/ Share on other sites More sharing options...
pocobueno1388 Posted January 20, 2008 Share Posted January 20, 2008 You would store all the photos in a database, then browsing through them is just pagination. Quote Link to comment https://forums.phpfreaks.com/topic/86963-solved-how-do-i-build-photo-album-like-this-one/#findComment-444637 Share on other sites More sharing options...
waynem801 Posted January 20, 2008 Author Share Posted January 20, 2008 Ok, I'm a little bit of a PHP Hacker, So could you give me an example of how i would do that, and make the pagination, or maybe point me to a script that would work for me. I will have alot of photo's so i'll need to be able to just upload them, and Go.... Thanks for your help wayne Quote Link to comment https://forums.phpfreaks.com/topic/86963-solved-how-do-i-build-photo-album-like-this-one/#findComment-444639 Share on other sites More sharing options...
janim Posted January 20, 2008 Share Posted January 20, 2008 this photo album need alot of work this is not easy as you think it need JS too but the idea is store all of your images in table this table consist of [ ID NAME ] id is auto increment and name is the name of the image from the server with the path $sql = select * from table order by ID desc while ($row = mysql_fetch_array($sql) ){ echo "<a href=\"popup.php?id=$row[id]\"><img src=\"_path_$row[name]\" /></a>"; } i hope this helps Quote Link to comment https://forums.phpfreaks.com/topic/86963-solved-how-do-i-build-photo-album-like-this-one/#findComment-444648 Share on other sites More sharing options...
pocobueno1388 Posted January 20, 2008 Share Posted January 20, 2008 Pagination Tutorial http://php.about.com/od/phpwithmysql/ss/php_pagination.htm I didn't completely look through this, but it looks like exactly what you need http://www.sitepoint.com/article/php-gallery-system-minutes This one may be good too http://www.codewalkers.com/c/a/Miscellaneous/Creating-an-Image-Gallery/ All I can say is search Google. That is where I'm getting all this information from. Photo galleries are a pretty common need, so I'm sure there are plenty of things out there you can use. Quote Link to comment https://forums.phpfreaks.com/topic/86963-solved-how-do-i-build-photo-album-like-this-one/#findComment-444654 Share on other sites More sharing options...
waynem801 Posted January 20, 2008 Author Share Posted January 20, 2008 K, I like the pagination tutorial, I'll start with that, and the others suggested, Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/86963-solved-how-do-i-build-photo-album-like-this-one/#findComment-444657 Share on other sites More sharing options...
revraz Posted January 20, 2008 Share Posted January 20, 2008 There are a ton of free PHP Photo Albums out there, maybe find one that suits your needs. Quote Link to comment https://forums.phpfreaks.com/topic/86963-solved-how-do-i-build-photo-album-like-this-one/#findComment-444668 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.