TonganNinja Posted May 10, 2009 Share Posted May 10, 2009 Hi there, first off I would like to say I am fairly new to PHP so any dumbing down of answers is greatly appreciated Anyway, I am trying to form a page whereby people can upload images from their PC and have them displayed on the site, preferably in some sort of thumbnail grid array (say 4 by 4 or 5 by 5 etc). Once there, I am going to link them to the full size image, and I would like another function where people can add and read comment on that picture. Disregarding the issues of moderation of content, would this be feasible, if so, and help would be greatly appreciated Thank you in advance! Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/ Share on other sites More sharing options...
ohdang888 Posted May 10, 2009 Share Posted May 10, 2009 would this be feasible, if so, and help would be greatly appreciated yes, its possible. Use google to find a good tutorial, then post errors you come across and we'll help with that. But we won't write it for you. Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/#findComment-831017 Share on other sites More sharing options...
TonganNinja Posted May 10, 2009 Author Share Posted May 10, 2009 Ok, I would love to but to be honest, I cannot see anything of any use. I cannot find any code to help with bringing the images from the server and displaying them in a grid array. I think thats the main thing I'm falling over with here Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/#findComment-831027 Share on other sites More sharing options...
ohdang888 Posted May 10, 2009 Share Posted May 10, 2009 what do you mean a grid array? Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/#findComment-831063 Share on other sites More sharing options...
TonganNinja Posted May 10, 2009 Author Share Posted May 10, 2009 Well like showing thumbnails on a page, maybe in a table like formation of say 5 by 5 pictures Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/#findComment-831229 Share on other sites More sharing options...
ohdang888 Posted May 11, 2009 Share Posted May 11, 2009 thats not php. that's html. And yes, that's possible. Actually its quite basic html. <table> and <tr> and <td> tags, that's it Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/#findComment-831541 Share on other sites More sharing options...
premiso Posted May 11, 2009 Share Posted May 11, 2009 Ok, I would love to but to be honest, I cannot see anything of any use. PHP Image Gallery You just have to use the right keywords. Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/#findComment-831552 Share on other sites More sharing options...
TonganNinja Posted May 11, 2009 Author Share Posted May 11, 2009 thats not php. that's html. And yes, that's possible. Actually its quite basic html. <table> and <tr> and <td> tags, that's it Yes I know that, but PHP comes in to pull off the pictures from the database, then create the table and cell content as the database is updated Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/#findComment-831645 Share on other sites More sharing options...
DarkSuperHero Posted May 11, 2009 Share Posted May 11, 2009 ok, so everytime you want to bring up the image gallery you would need to pull the information...this infomation would probably the URL to the images....this would be in an array (hopefully)....You would then look through the array...heres a broken down process open your html table(<table><tr>) get array of images count the num of elements in array go through the elements of the array 1 by 1 keeping track of the count your on... echo somehting like <td><a href='big.gif'<img src='small.gif'></a></td> every 4th or 5th image echo </tr><tr> (this gives us that grid effect) keep going...and when your done close your table </tr><table> hope that kinda helps...you'll need to look into loops, 'for' or 'while' Quote Link to comment https://forums.phpfreaks.com/topic/157580-image-uploads/#findComment-831686 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.