while($row = mysql_fetch_assoc($sql1))
$sqldiag=$conn->query("select di_name from assi_diagnosis where di_id IN ($disp1$j)");
$i == "0";
$items = array();
while($rsdiag=mysql_fetch_array($sqldiag))
{
echo $rsdiag['di_name'].">>";
$items[$i] = $rsdiag['di_name'];
print_r($items);
}
$i++;
Friends I would like to save values in array when processing an while loop . my expectation is when the first loop condition is executed $item[0] should contain all the resultset values of second while loop iteration for ex : (
$item[0] = {value1,value2,value3};
$item[1] = {value1,value2,value3};
$item[2] = {value1,value2,value3};
)
$item[0] is the value of first iteration values with in $item[0] are values of second while loop
$i == "0";supposed to do? It is a conditional statement yet it's not inside anif.