I have this table 
And my goals is to have a table looking like this

The table has 8 rows and 3 columns
I have already stored the questions but I'm having a hard time printing it in this format.
Wherein after printing 4 questions it will then go to another cell and print 4 questions again and then once there are already 3 columns it will then create a new row and do the same step again.( 8 rows and 3 columns)
The questions are ordered by sequence no. [In the table below the 1st 4 questions are 1,2,3,4 and then the cell on it's right are 6,7,8,9 and so on....]
I'm stuck with this for almost 8 hours already....
Here's my current code:
select = "SELECT q.QuestionID, q.QuestionText, q.m, q.l, q.GroupNo, q.SequenceNo FROM question2 q Order By q.SequenceNo";
$result = mysql_query($select);
$question_id = "";
$question_text = "";
$question_m = "";
$question_l = "";
$question_group = "";
//$table = "<table border='1' cellspacing='1'>";
$count_row = 0;
$array = array();
//$count_column = 0;
while($row = mysql_fetch_array($result))
{
$question_id = $row['QuestionID'];
$question_text = $row['QuestionText'];
$question_m = $row['m'];
$question_l = $row['l'];
$question_group = $row['GroupNo'];
$question_sequence = $row['SequenceNo'];
if($count_row > 2)
{
$array[] .= "</div>";
}
$array[] .= "<div style='border=1px';'>";
$array[] .= $question_text ."<br/>";
$count_row++;
}
$table .= "</table>";
echo $table;
Sir/Ma'am your answers would be of great help. Thank you++