Yeah the problem is that when I close the loop after the last row I get (meaning it's not grouping anymore)
row a
row b
row a
row b
intead of
row a
row a
row b
row c
I was using for($i = 0; $i < $numofrows; $i++) {
$row = mssql_fetch_array($result); instead of while but I couldn't make it iterate through the results correctly. It remembered what I wanted even though I closed the loop after the first row. However when I use while it forgets. Is there another way around this?
Thanks
Laura