I have two array taken out from table basic on the chapter id. Where one array is in condition where chapter is between 1 and 6. Similarly another array is in condition where chapter is between 7 to 12 from the same table.
where my first query is
$sql1 = 'SELECT s.section_number, s.title,n.description,s.global_order_id, c.commentary FROM section as s
INNER JOIN note as n
INNER JOIN commentary as c ON s.global_order_id=n.global_order_id and c.global_order_id=n.global_order_id
where n.user_id='.Yii::app()->user->id.' and s.chapter_id Between 1 and 6';
and second query is
$sql2 = 'SELECT s.section_number, s.title,n.description,s.global_order_id, c.commentary FROM section as s
INNER JOIN note as n
INNER JOIN commentary as c ON s.global_order_id=n.global_order_id and c.global_order_id=n.global_order_id
where n.user_id=' . Yii::app()->user->id . ' and s.chapter_id Between 7 and 12';
All are same what differs is title according to chapter.
When I do array merge than only one title is shown but I want to make double array to single and showing both title. HOw can i do it?
Thanks in advance...