Gossamer Forum
Home : Products : DBMan : Customization :

$numhits, $maxhits, $db_total_hits and $db_next_hits

Quote Reply
$numhits, $maxhits, $db_total_hits and $db_next_hits
Hello,

I'm having some trouble with some invible records, like I posted before, I did this sub-category change... In the short display, some records (sub records) dont show up, but they count in the Total records found.

Could someone please explain to me what are theses variables: $numhits, $maxhits, $db_total_hits and $db_next_hits.

Thanks!!
Quote Reply
Re: $numhits, $maxhits, $db_total_hits and $db_next_hits In reply to
$numhits (nh) = Number of results that match a keyword entered in the search box for each page of total result pages. Specified by the nh argument in the query string.

Example: &nh=14

(Page 14 of total results.)

maxhits (mn) = Number of maxhits per page specified for the search. Specified by the mh argument in the query string. Specified by the $db_maxhits variable in the default.cfg file and can be adjusted by users in the search form.

Example: &mh=10

(Maximum hits per page equals 10.)

$db_total_hits = The total number of records in the database.

$db_next_hits = Hits on the next pages.

Hope this sheds some light.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums