while($myrow=mysql_fetch_array($query2)){
$answer=$myrow["answer"];
$a_id=$myrow["id"];
$num_a++;
echo"$myrow[0]; $myrow2[3]";
$test=$myrow[0]; $myrow2[3];
}
when run in a browser, the many rows of data returned appear in a long, nice looking string. in reality though, that is just becasue echo is adding the next row of data to the one before it, each time it cycles through the "while" loop. when i do echo"$test"; all i get is the last row of data. how do i get the "while" loop to add each row of data it's getting to the variable as it cycles through instead of the variable becoming redefined on each loop?
example:
echo"$myrow[0]; $myrow2[3]"; gives-> 1a2b3c4d
echo"$test"=4d
i need $test to equal 1a2b3c4d, not just 4d.