In the PHP page, the value & nbsp; & lt; table & nbsp; cellspacing0 & nbsp; cellpadding0 & gt; & nbsp; & nbsp; & lt; tr & gt; & 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
Share :?????????????????? <... 'Data-pics = 'http: // www.daimami.com/img/2014/01/01/110730310.png | http://www.daimami.com/img/2014/01/110730311.png'>
------ Solution --------------------
$i=0;foreach($info['list'] as $ent){$ent = $ent['info'];$checked = $ent['flag']==1?"checked='checked'":"";