You can see my gallery here: http://www.thepeartree.co.nz/index.php/gallery/
The galleries are not aligned properly, they are supposed to be in columns of 3. I have tried using php like the code below but its not working, also tried using the ‘switch’ feature and thats also not working. Does anyone know why this might be happening? Or if you could suggest another way in which I could edit this code to make a dynamic table?
Thank you!