"; echo $outXml; switch ($get_res_type) { case "translate": $tableName = "data"; break; case "wbw": $tableName = "main"; break; } $db_file = "../appdata/palicanon/" . $get_res_type . "/" . $get_book . "_" . $get_res_type . ".db3"; //open database PDO_Connect("$db_file"); //for($iPar=0;$iPar 0) { for ($i = 0; $i < $iFetch; $i++) { $outXml = ""; $outXml = $outXml . "$get_book"; $outXml = $outXml . "" . $Fetch[$i]["paragraph"] . ""; $outXml = $outXml . "$get_res_type"; $outXml = $outXml . "" . $Fetch[$i]["language"] . ""; $outXml = $outXml . "" . $Fetch[$i]["author"] . ""; $outXml = $outXml . "" . $Fetch[$i]["editor"] . ""; $outXml = $outXml . "" . $Fetch[$i]["revision"] . ""; $outXml = $outXml . "" . $Fetch[$i]["edition"] . ""; $outXml = $outXml . "" . $Fetch[$i]["subver"] . ""; switch ($get_res_type) { case "translate": $outXml = $outXml . "" . $Fetch[$i]["toc"] . ""; break; } $outXml = $outXml . ""; echo $outXml; } } } /*查询结束*/ $outXml = ""; echo $outXml;