Single Border In Merge Columns In Yii

hi,

i am doing a report.in that report, i have used merged columns dynamically.and in that columns i want to separate that records with single border.

here is my code of my reportview.php

in which i want single border.

for($sub=0;$sub<count($subject);$sub++)

{


	if(&#036;subject[&#036;sub]&#33;=0)


	{


		if(&#036;cols[&#036;sub]&gt;1)


		{


		   &#036;count=&#036;comb_subject[&#036;sub];	


		   &#036;cols_sub=&#036;cols[&#036;sub];		  


		   print &quot;&lt;th colspan=&quot;.&#036;cols_sub.&quot;&gt;&lt;table border='1'&gt;&lt;tr&gt;&quot;;	


		   for(&#036;c=0;&#036;c&lt;&#036;count;&#036;c++)	


		   {	


		   	[b]print '&lt;th style=&quot;border-right:thin solid #74B9F0 ;border-left:thin  solid #74B9F0&quot; width='.(100/&#036;count).'%&gt;'.SubjectMaster::model()-&gt;findByPk(&#036;subject[&#036;sub])-&gt;subject_master_name.&quot;&lt;/th&gt;&quot;;


		      &#036;sub++;[/b]	


 		   }	


		   print &quot;&lt;/tr&gt;&lt;/table&gt;&lt;/th&gt;&quot;;


		   &#036;sub--;


		}


		else


		{


		print '&lt;th&gt;'.SubjectMaster::model()-&gt;findByPk(&#036;subject[&#036;sub])-&gt;subject_master_name.' &lt;/th&gt;';


		}


	}


  	else 


	print '&lt;th &gt;-&lt;/th&gt;';


}

pls suggest solution

thanks




for($sub=0;$sub<count($subject);$sub++)

{

    if($subject[$sub]!=0)

    {

        if($cols[$sub]>1)

        {

            $count=$comb_subject[$sub];

            $cols_sub=$cols[$sub];

            print "<th colspan=".$cols_sub."><table border='1'><tr>";

            for($c=0;$c<$count;$c++)

            {

                print '<th style="border-right:thin solid #74B9F0 ;border-left:thin solid #74B9F0" width='.(100/$count).'%>'.SubjectMaster::model()->findByPk($subject[$sub])->subject_master_name."</th>";

                $sub++;	

            }

            print "</tr></table></th>";

            $sub--;

        }

        else

        {

            print  '<th>'.SubjectMaster::model()->findByPk($subject[$sub])->subject_master_name.' </th>';

        }

    }

    else

        print '<th >-</th>';

}



Would provide more details about your $subject data?