Hi,

**First**post!

I am having a problem with my PHP.

I am trying to make a

**8x8**grid, with boolean values that i can then check and count how many true values are in each column, row and diagonal.

At the moment i have managed to get the grid/matrix successfully and also i have managed to check the rows and columns. So thats all cool.

However i am having trouble working out the best way to check the diagonals.

I have noticed that there is a bit of a patern with them, for example some of them as you follow it through either the x or the y value is going down and the other is going up.

I just dont know how best to put this into code.

Any suggestions would be greatly appreciated!

Thanks

Dougal[!--fontc--][/span][!--/fontc--]