ok, the code changes so far.
change the existing query:
$sql = "SELECT * FROM $tbl1 WHERE keyword='RSS' OR keyword='rss' UNION SELECT * FROM $tbl2 WHERE keyword_id > 0";
$resourceArray=array();
$result = $this->dbQuery($sql);
for($i=0;$i<@$this->recordCount($result);$i++) {
array_push($resourceArray,@$this->fetchRow($result));
}
//extract the document ids, pop the ist field off with keyword results
for($i=1; $i<count($resourceArray); $i++){
$RSSDocs[]=$resourceArray[$i]['id'];
}
into:
$sql = "SELECT * FROM $tbl1 WHERE keyword='RSS' OR keyword='rss'";
$result = $this->dbQuery($sql);
for($i=0;$i<@$this->recordCount($result);$i++) {
$row = $this->fetchRow($result);
$rss_ids.= ','.$row['id'];
}
$sql = "SELECT content_id AS id FROM $tbl2 WHERE keyword_id IN (0".$rss_ids.")";
$resourceArray=array();
$result = $this->dbQuery($sql);
// echo 'aantal results uit query: '.$this->recordCount($result);
for($i=0;$i<@$this->recordCount($result);$i++) {
array_push($resourceArray,@$this->fetchRow($result));
}
//extract the document ids, pop the ist field off with keyword results
for($i=0; $i<count($resourceArray); $i++){
$RSSDocs[]=$resourceArray[$i]['id'];
// echo 'ID: '.$resourceArray[$i]['id'].'
';
}
So far, this is what i changed to make it work. I hope it will help people
(hmm, the debugging comments may be deleted

)
Edited by MoRRiS, 13 December 2008 - 02:45 PM.