how to create an array for every row like('algo'=>'input1','algo'=>'input2'
then ('algo2'=>'input1','algo2'=>'input2')
i want to do this for dynamic number of topics and also want to insert in mysql
through php. this is how i want to store the array values
$sel=mysqli_query($db,"SELECT * from srs");
$count=mysqli_num_rows($sel);
while ($row=mysqli_fetch_array($sel))
{
echo '<tr>
<td class="col-sm-2">'.$row['name'].'</td>
<td class="col-sm-2"><a href="#" id="add" ><img src="../images/add.png"></a> / <a href="#" id="rem" ><img src="../images/rem.png"></a></td>
</tr>';
$i++;
}