Page 1 of 1

PHP image gallery

Posted: Wed Mar 12, 2008 4:44 pm
by orbface9
Hello,

I have a client who wants an image gallery. It will be an AJAX page with 3 images per page. These images will rotate in and out.

I want to create a php function that will pass the file names to a javascript function. The catch is, that i want to sort these values in the php array, by date created. Is this possible, if so, how hard is it?

I found this. http://www.javascriptkit.com/javatutors ... php2.shtml
It told me how to get the php array to pass to the javascript array, but cannot get any further.

Any help is appreciated.

Thanks

Re: PHP image gallery

Posted: Thu Mar 13, 2008 9:10 pm
by orbface9
orbface9 wrote:Hello,

I have a client who wants an image gallery. It will be an AJAX page with 3 images per page. These images will rotate in and out.

I want to create a php function that will pass the file names to a javascript function. The catch is, that i want to sort these values in the php array, by date created. Is this possible, if so, how hard is it?

I found this. http://www.javascriptkit.com/javatutors ... php2.shtml
It told me how to get the php array to pass to the javascript array, but cannot get any further.

Any help is appreciated.

Thanks
anyone have any advice?