FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » Only one search result is returned.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Only one search result is returned. [message #30152] Tue, 07 February 2006 08:18 Go to previous message
stoph is currently offline  stoph   Germany
Messages: 7
Registered: February 2006
Karma:
Junior Member
Ah, sorry, wrong board. Please move it to bugs Smile

I am using version 2.7.4.
If i do a search only one sesult is returned.

It does its job if i change the lines from 147 in /src/search.php.t
to the following:
	$search_data = '{TEMPLATE: no_search_results}';
	$page_pager = '';
} else {
	$i = 0;
	$search_data = '';

	$tmp = array();

	while ( $r = db_rowobj($c))
	{
		$tmp[] = $r;
	}

	foreach ( $tmp as $r) {
		$search_data .= '{TEMPLATE: search_entry}';
	}

	unset($c);


Die Search results are prefetched into the $tmp array and postet within a foreach loop. The previous code ...

	while ( $r = db_rowobj($c))
		$search_data .= '{TEMPLATE: search_entry}';
	}

	unset($c);


... got me only one sesult.

[Updated on: Tue, 07 February 2006 08:22]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: fudforum2.6 + index.php was not found on this server
Next Topic: HTML and FUDcode together?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 06:36:07 GMT 2024

Total time taken to generate the page: 0.03833 seconds