View Single Post
  #2  
Old 11-25-2007, 08:29 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
this looks great, a superb idea!

Two things to mention:
You forgot a download link in your post here.

And I suggest a small change in code for making it faster:
I would use the $totalTiles already in the MySql select (LIMIT 0,$totalTiles)

Otherwise the array becomes much bigger than necessary. So you can work through the array with
Code:
foreach ($photomosaic as $thumb) {
   explode($pieces = explode("|", $thumb);
   ...
}
And another idea for enhancing:
You could ask for $_GET['cagegory'] and $_GET['tag'] and display a mosaic for the selected category and/or tag as well
(<MOSAIC_TAG> and <MOSAIC_CAT> for example)

KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote