"; echo $outXml; //open database PDO_Connect(_FILE_DB_PALITEXT_); $query = "SELECT * FROM "._TABLE_PALI_TEXT_." where book = ?"; $Fetch = PDO_FetchAll($query,array($currBook)); $iFetch = count($Fetch); if ($iFetch > 0) { for ($i = 0; $i < $iFetch; $i++) { $outXml = ""; $outXml = $outXml . "" . $Fetch[$i]["book"] . ""; $outXml = $outXml . "" . $Fetch[$i]["paragraph"] . ""; $outXml = $outXml . "" . $Fetch[$i]["level"] . ""; $outXml = $outXml . "" . $Fetch[$i]["class"] . ""; $outXml = $outXml . "" . mb_substr($Fetch[$i]["text"], 0, 50, "UTF-8") . ""; $outXml = $outXml . "pali"; $outXml = $outXml . "CSCD4"; $outXml = $outXml . ""; $outXml = $outXml . ""; echo $outXml; } } /*查询结束*/ $outXml = ""; echo $outXml;