Grid of php

Allright, I will try to explain.

I am building something like kirupa ville where I ahve got this table which covers all the page, and than a div with 100% width and 100% height (which extends itself to all the space in the table).

Because the map is isometric, when I try to place the little houses I get some problems of intersection, so I would like to know how to to set the positions of each little house.

Also I have another problem:

I recall the house array from a mysql database. how do i set in a while statment that house number one must show on position x,y, house number two must show on position x2, y2, and than go down and start again?

I will include a picture which is taken from and which I am using as an example…

Thanks a lot in advance for any advice. :wasted: