plz help me with the proper logic code to arrange the list of checkboxes in 5/5 format my current code which is not displaying the layout of the checkboxes properly is :
Code: Select all
function checkBoxList( &$arr, $tag_name, $tag_attribs, $selected=null, $key='value', $text='text', $porlinea=false )
{
reset( $arr );
$html = "";
for ($i=0, $n=count( $arr ); $i < $n; $i++ ) {
$k = $arr[$i]->$key;
$t = $arr[$i]->$text;
$id = @$arr[$i]->id;