The PHP page shows the value in trtd in a loop & nbsp; & lt; table & nbsp; width = "100%" & nbsp; border = "0" & nbsp; cellspacing = "0" & nbsp; cellpadding = "0" & gt; & nbsp; & n PHP page displays values in tr td cyclically
$i = 0;
foreach($info['list'] as $ent){
$ent = $ent['info'];
$checked = $ent['flag']==1?"checked='checked'":"";
echo '';
echo '
';
echo ' ';
echo '
'.$ent["name"].'';
echo ' ';
echo '';
$i ++;
}
?>
---------------------------------
The following results are displayed:
------------------------------------
I want to display the following results:
The code has been pasted out. please help me change the typographical display.
Php checkbox html is shared :?????????????????? <... 'Data-pics = '/img/2013/09/06/110730310 .png |/img/2013/09/06/110730311 .png'>
------ Solution --------------------
$i=0;
foreach($info['list'] as $ent){
$ent = $ent['info'];
$checked = $ent['flag']==1?"checked='checked'":"";