dezkit Posted November 3, 2008 Share Posted November 3, 2008 How do i do it? Link to comment https://forums.phpfreaks.com/topic/131266-solved-auto-table-row-when-3-mysql-rows-get-echod/ Share on other sites More sharing options...
trq Posted November 3, 2008 Share Posted November 3, 2008 See the FAQ. Link to comment https://forums.phpfreaks.com/topic/131266-solved-auto-table-row-when-3-mysql-rows-get-echod/#findComment-681544 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; } Link to comment https://forums.phpfreaks.com/topic/131266-solved-auto-table-row-when-3-mysql-rows-get-echod/#findComment-681547 Share on other sites More sharing options...
dezkit Posted November 3, 2008 Author Share Posted November 3, 2008 Thanks corbin! Link to comment https://forums.phpfreaks.com/topic/131266-solved-auto-table-row-when-3-mysql-rows-get-echod/#findComment-681587 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. Link to comment https://forums.phpfreaks.com/topic/131266-solved-auto-table-row-when-3-mysql-rows-get-echod/#findComment-681634 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.