LiveWire Peer Support Network

Printable Version of Topic "PHP gallery"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- PHP gallery (http://www.golivewire.com/forums/peer-yeniebi-support-a.html)


-- Posted by Eric 2009 at 1:06 pm on Dec. 28, 2008

i want to make a 5 x5 photo gallery. without manually assigning all pictures. i have my pictures named 1.jpg 2.jpg 3.jpg.... etc.

help


-- Posted by Lord Cat at 1:08 pm on Dec. 28, 2008

1.jpg
Wait no that HTML lol i don't know php i only know python and javascript? soz


-- Posted by Light Assassin at 1:11 pm on Dec. 28, 2008

manually align?


-- Posted by Mediocre at 1:15 pm on Dec. 28, 2008

Quote: from Eric 2009 at 1:06 pm on Dec. 28, 2008


without manually assigning all pictures.

Use any gallery software that supports FTP uploading.

http://en.wikipedia.org/wiki/Photo_gallery_comparison


-- Posted by allsmiles at 3:19 am on Dec. 29, 2008

Get an array with all your pictures in it. Iterate through them, with a counter, and when it's a multiple of five, drop down to the next line. I'm sure you know how to output the necessary formatting.


-- Posted by matto at 1:31 pm on Dec. 29, 2008

Quote: from allsmiles at 3:19 am on Dec. 29, 2008


Get an array with all your pictures in it. Iterate through them, with a counter, and when it's a multiple of five, drop down to the next line. I'm sure you know how to output the necessary formatting.
win


-- Posted by Eric 2009 at 2:54 pm on Jan. 12, 2009

not what i want to do. I want my code to detect when 5 images are in a row, then start another. and so on and so forth. my images are gonna be named numericaly1-x


-- Posted by allsmiles at 3:32 pm on Jan. 14, 2009

Well that's exactly what I suggested.


-- Posted by ranman at 2:14 am on Feb. 4, 2009

yeah but he wants you to write the code for him lol


www.golivewire.com