i have following while
while($rs=mysqli_fetch_array($row))
{
}
in each while execution there is one column which will have some ID lik 5 , 6 7, 8
ID Name Intake division_no
1 5 1 2
2 6 4 5
i have some varible name like txtin5, txtin6
while looping in while i want to automatic assign intake value to that variable for ex in this case
$txtin5 = 1
$txtin6 = 4
i used this
$spvar = "txtin" ;
$i=5;
while {
$$spvar.$i = rs['Intake'];
$i++;
}
i know this is wrong , but anyone could tell me the right way