有人在么,帮我看下一个循环,

有人在么,帮我看下一个循环,

引用:
$db = mysql_connect("localhost","root","831090");mysql_select_db("domain_tool");
$resultA = mysql_query("select body from ray_data where types=0",$db);
$resultB = mysql_query("select body from ray_data where types=1",$db);

while($rowA = mysql_fetch_array($resultA))
{
        $SequenceA = $rowA[0];
        while($rowB = mysql_fetch_array($resultB))
        {
                $SequenceB = $rowB[0];
                $Results = $SequenceA.$SequenceB;
                echo "$Results\n";
        }
}
这个循环,,,$rowA[0]只循环一次,就不继续循环呢,,,,
循环结果是
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9
我想要的结果是
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9
c0....
d0....
....


这样的结果,可是这个循环,$rowA[0]只取呢一次值就不继续循环呢,

第一次循环的时候 while($rowB = mysql_fetch_array($resultB))  已经到了最后,下一次就不会在循环了
下面的代码可以参考下

[复制到剪切板]
CODE:
$db mysql_connect("localhost","root","831090");mysql_select_db("domain_tool");
$resultA mysql_query("select body from ray_data where types=0",$db);
$resultB mysql_query("select body from ray_data where types=1",$db);

while(
$rowB mysql_fetch_array($resultB)) {
        
$arr[] = $rowB[0];
}


while(
$rowA mysql_fetch_array($resultA)){
        
$SequenceA $rowA[0];
        foreach(
$arr as $v){
               
$Results $SequenceA.$v;
               echo 
"$Results\n";
         }        
       
reset($arr);
} ;


毕业了。。。