note 70398 deleted from ref.mnogosearch by betz
| From: | betz@php.net | Date: | Sun, 15 Oct 2006 09:50:10 +0000 |
| Subject: | note 70398 deleted from ref.mnogosearch by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-118539@lists.php.net to get a copy of this message | ||
Note Submitter: mikko at sorl dot net
----
Sorry, i still did not get it right, replace the above fetch function with this instead:
<?php
public function fetch() {
$this->total = udm_get_res_param($this->res, UDM_PARAM_FOUND);
$r = udm_get_res_param($this->res, UDM_PARAM_NUM_ROWS);
$fields = array('urlid', 'url', 'content', 'title',
'keywords', 'desc',
'text', 'size', 'rating',
'modified', 'order', 'crc', 'category',
'lang', 'charset', 'siteid',
'pop_rank', 'originid');
for($i=0; $i<$r; $i++){
for($j=0; $j<count($fields); $j++) {
$this->matches[$i][$fields[$j]] = udm_get_res_field($this->res, $i, $j+1);
}
}
}
?>