![]() |
|
Can I put the last album created in index page of my website? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Can I put the last album created in index page of my website? (/thread-5120.html) |
Can I put the last album created in index page of my website? - atomxy - 2009-04-30 Hello… I’m sorry, I have no knowledge in PHP script, so I’m having problems to use some features of Zenphoto. I want to put a link to last created album in index page of my website, I want to create a news from Zenphoto albums, to show the last album created and the description, but in my website index, not in Zenphoto pages. Is this possible? How can I do this? Thanks very much for the attention Regards Leandro Can I put the last album created in index page of my website? - sbillard - 2009-05-01 Yes, but you will have to do some MySQL work. The last album created will be the one with the highest 'id' value. So do a SELECT * FROM `` ORDER BY id DESCENDING LIMIT 1 This will give you the table entry for the most recent album. There is a 'name' field in the record which is the album name. Create a new album object giving this name, then do what ever you want to put it on your index page. |