' Manage Stories Dashboard Edit Story Edit Story initializeQueryBuilder(); $memberlist = $query->select('*') ->from('tb_story') ->where('id', 'eq.' . $getid . '') ->order('id.desc') ->execute() ->getResult(); foreach ($memberlist as $list) { // Check if 'popular' is set, and set it to checked if 1, otherwise leave it unchecked $isPopularChecked = ($list->popular == 1) ? 'checked' : ''; } ?> Edit Story Upload Photo: Caption: caption ?> Description: full_desc ?> > Mark as Popular ' post the data using ajax