Based on the image you present (the data in the column) you will always have six elements (if more, you need an additional condition for the output). We pull them out of the database (I think you did it), then run the explode function, and then output the desired item or run it in a loop.
Decision:
$str = '0,1,2,3,4,5'; $mas = explode(',',$str); $table .= "<tr>"; $table .= "<td>Skill:</td>"; $table .= "<td>".$mas[0]."</td>"; $table .= "</tr>";
Or cycle:
foreach ($mas as $value) { $table .= "<tr>"; $table .= "<td>Skill:</td>"; $table .= "<td>".$value."</td>"; $table .= "</tr>"; }
PS Instead of $str
insert $row['pSkills']
.