Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $tingkatanedit = $profil->id_tingkatan;
- $etingkatan = explode(",", $tingkatanedit);
- $jlh = count($etingkatan);
- $nTingkat = $jlh - 1;
- $val = 0;
- $inc = 0;
- foreach ($tingkatan as $t => $row) {
- ?>
- <input type="checkbox" name="idtingkatan"
- <?php
- $val = 0;
- while ($val <= $nTingkat) {
- if ($row->id_tingkatan == $etingkatan[$val]) {
- echo 'checked';
- }
- $val++;
- }
- ?>
- />
- <?php
- echo $row->id_tingkatan;
- ?>
-
- <?php
- $inc++;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement