Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php while($row = mysqli_fetch_assoc($result)){ ?>
- <label class="checkbox-inline">
- <?php $study_arr = explode(",", "1,2,4"); ?>
- <input type="checkbox" name="study_id[]" value="<?=$row['id'];?>" <?php if(in_array($row['id'], $study_arr)){ echo "checked"; } ?>><?=$row['name'];?>
- </label>
- <?php } ?>
- // checking whether a file is directory or not
- if (is_dir($myfile))
- echo ("$myfile is a directory");
- else
- echo ("$myfile is not a directory");
Add Comment
Please, Sign In to add comment