Hi I got this coding problem. I would like to through a while expression autocreate different variables with names and value coming from the table. (Using arrays maybe? I have no clue) So in this case for example, in the while code below there would be 2 variables created, $idbox = 73 & $idmeg = 7.
This is the core code:
while($row = mysql_fetch_array($maximum_qry)){
$left = array();
$left = $row['maximum']-$row['TOTAL'];
}
This is the table which it concerns:
id-----TOTAL---maximum
box---27-------100
meg--3---------10