PHP image gallery

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
orbface9
Forum Newbie
Posts: 2
Joined: Wed Mar 12, 2008 4:38 pm

PHP image gallery

Post 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
orbface9
Forum Newbie
Posts: 2
Joined: Wed Mar 12, 2008 4:38 pm

Re: PHP image gallery

Post 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?
Post Reply