PHP checkbox html
'. $ent ["name"]. '
'; Echo '; Echo ' ; Echo '; Echo ' ; Echo '; $i + +; } ? >
---------------------------------
The effect that is shown now is:
------------------------------------
The effect I want to arrange is as follows:
The code has been posted, for the prawn to help me change the layout display effect
Reply to discussion (solution)
Prawns:
Why
$i + +;
}?>
Said there was one more. I deleted it and I reported it.
$checked = $ent [' flag ']==1?] Checked= ' checked ' ":"; This line of code is wrong
Prawns:
Why
$i + +;
}?>
Said there was one more. I deleted it and I reported it.
$checked = $ent [' flag ']==1?] Checked= ' checked ' ":"; This line of code is wrong
At the beginning of the system reported more than one parenthesis} said one more}, then I delete}.
But then $checked = $ent [' flag ']==1?] Checked= ' checked ' ":"; This line of code is wrong!
I wrote one more, like, the bottom of the number is the end of the foreach. You try this paragraph:
$checked = $ent [' flag ']==1?] Checked= ' checked ' ":";
Say this line error!
I wrote one more, like, the bottom of the number is the end of the foreach. You try this paragraph:
$checked = $ent [' flag ']==1?] Checked= ' checked ' ":";
Say this line error!
This piece of HTML is right. I've tested it. Check your info array to see if you have authflag this key.
Print_r ($info); print out a look at the data inside the $info.
For your HTML, I gave a mock array:
$info =array (' list ' =>array (' info ' =>array (' flag ' =>1, ' code ' =>1, ' name ' =>1) ', array (' info ' = Array (' flag ' =>0, ' code ' =>2, ' name ' =>2), array (' Info ' =>array (' flag ' =>1, ' code ' =>3, ' name ' =>3)) , Array (' Info ' =>array (' flag ' =>0, ' code ' =>4, ' name ' =>4)), array (' Info ' =>array (' flag ' =>0, ' code ' = >5, ' name ' =>5), array (' Info ' =>array (' flag ' =>0, ' code ' =>6, ' name ' =>6) '), Array (' Info ' =>array (' Flag ' =>0, ' code ' =>7, ' name ' =>7), array (' Info ' =>array (' flag ' =>0, ' code ' =>8, ' name ' =>8)));
'; Notice here $ent = $ent [' info ']; $checked = $ent [' flag ']==1?] Checked= ' checked ' ":"; Echo '
'; Echo ''; Echo ' ; Echo '. $ent ["name"]."; Echo ' ; Echo ' | '; $i ++;if ($i% 4 = = 0) echo '
'; Note here } ?> ': ';//note here?>
This piece of HTML is right. I've tested it. Check your info array to see if you have authflag this key.
Print_r ($info); print out a look at the data inside the $info.
For your HTML, I gave a mock array:
$info =array (' list ' =>array (' info ' =>array (' flag ' =>1, ' code ' =>1, ' name ' =>1) ', array (' info ' = Array (' flag ' =>0, ' code ' =>2, ' name ' =>2), array (' Info ' =>array (' flag ' =>1, ' code ' =>3, ' name ' =>3)) , Array (' Info ' =>array (' flag ' =>0, ' code ' =>4, ' name ' =>4)), array (' Info ' =>array (' flag ' =>0, ' code ' = >5, ' name ' =>5), array (' Info ' =>array (' flag ' =>0, ' code ' =>6, ' name ' =>6) '), Array (' Info ' =>array (' Flag ' =>0, ' code ' =>7, ' name ' =>7), array (' Info ' =>array (' flag ' =>0, ' code ' =>8, ' name ' =>8)));
Some [authflag] = 1
--------------------------------------------------
"Name=" view_[] "> Error
Said the line was an error.
'; Notice here $ent = $ent [' info ']; $checked = $ent [' flag ']==1?] Checked= ' checked ' ":"; Echo '
'; Echo ''; Echo ' ; Echo '. $ent ["name"]."; Echo ' ; Echo ' | '; $i ++;if ($i% 4 = = 0) echo '
'; Note here } ?> ': ';//note here?>
The moderator is indeed a bull X