PHP mysqli_fetch_assoc [closed]

I’m going to view a result using two tables. one table is task details and one the table I assigned two or more users for each task. Now how can I show each task in one row and how many users I have assigned to each task from another table (as in screenshot).

enter image description here