Help with code - show results in 2 coluns.
Posted: Wed Dec 24, 2008 8:51 am
hi guys, i m a php beginner and i have a problem thats is.
this code return me something like this but i need to show this in 2 coluns.

if somebody can help me... thanks in advance.
Code: Select all
<td><? // COMEÇA LISTAR OPCIONAIS
echo "<fieldset><legend><font color='$Cor1'>Features</font> </legend>";
$op2 = explode("|",$dados[id_opcionais]);
$total2 = count($op2);
//echo $total;
for($i2=0; $i2<$total2; $i2++) {
//echo $op[$i]."<br>";
if($op2[$i2] != ""){
$opc2 = mysql_fetch_array(mysql_query("SELECT * FROM $tabela7 WHERE id='$op2[$i2]'"));
//echo "$opc2[nome]";
echo "<input name='opcionais[]' type='checkbox' value='$opc2[id]' checked onClick='this.checked=true;'> $opc2[nome] ";
}
}
echo "</fieldset><br>";?></td>
if somebody can help me... thanks in advance.