Line 88 is the begining of this function:
function &document_sub($doc_ids) {
$docs = array();
# let's select the documents in a single query
$res = mysql_query("select id, title, content from document ".
"where id in (".join(',', $doc_ids).")");
while($row = mysql_fetch_row($res)) {
$docs[ $row[0] ] = $row[1]." ".$row[2];
}
return $docs;
}
Hope you can help,
Thanks,
Doug