dezkit Posted November 3, 2008 Share Posted November 3, 2008 How do i do it? Quote Link to comment Share on other sites More sharing options...
trq Posted November 3, 2008 Share Posted November 3, 2008 See the FAQ. Quote Link to comment Share on other sites More sharing options...
corbin Posted November 3, 2008 Share Posted November 3, 2008 Edit: Didn't know there was a FAQ Q about it..... Already typed it, so... Psuedo-code: $i = 0; while($r = row) { if($i == 0) { //open row } //do something with row if($i == 0) { //close row } $i = ($i == 2) ? 0 : $i+1; } Quote Link to comment Share on other sites More sharing options...
dezkit Posted November 3, 2008 Author Share Posted November 3, 2008 Thanks corbin! Quote Link to comment Share on other sites More sharing options...
corbin Posted November 3, 2008 Share Posted November 3, 2008 The code in the FAQ was actually a tad bit more efficient. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.