<div class="multiselect"> <?php $sql1="SELECT id, first_name, last_name, chat_id from users_master"; $result1 = mysqli_query($db,$sql1); $sql20="select * from task_assigned_to where id='$getid'"; $result20=mysqli_query($db, $sql20); while ($row1 = mysqli_fetch_array($result1)) { ?> <label><input type="checkbox" name="taskers[]" value="<?php echo $row1['chat_id']; ?>" <?php while($row10=mysqli_fetch_array($result20)) { if($row10['assigned_to_id']==$row1['chat_id']) { ?>checked<?php } } ?> /> <?php echo $row1['first_name']. " " .$row1['last_name']; ?> </label> <?php }?> </div>
$sql20="select * from task_assigned_to where id='$getid'";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)