|
03-04-2006, 11:03 PM | #1 |
Green Mole
Join Date: Mar 2006
Posts: 1
|
$site variable is not propagated to search_function.php
I've used PhpDig to index several websites on my server. That is, they are all indexed in the same mySQL database.
I set up a search box on one of the websites, and in order for the search to return hits that apply to that website only, I included the following input tag to be passed to search.php: <input type="hidden" name="site" value="n"> where "n" is the site_id (gotten from the mySQL database) for the particular site. If the user enters a search argument that is found, all works well. He gets a list of hits ONLY for site=n. However, if he misspells a word (for example "dynamte" instead of "dynamite") PhpDig responds with "No results. Did you mean <dynamite>?" Here's the problem. If the user clicks on the prompt for <dynamite> PhpDig returns hits from ALL websites in the database, rather than hits for site=n only! The site_id value I supplied on the original query (where the user misspelled the word) has not been passed along to this second query. Is this a bug or is there some way I can force the second, corrected query to limit itself to the one specific website? Thanks in advance. Ron |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I integrate results pages into a php site? | RubiconCSL | How-to Forum | 0 | 05-30-2006 05:52 AM |
categories and then edit search_function.ph | clueless | How-to Forum | 6 | 02-04-2005 05:35 PM |
search_function.php: allow to exclude path(s) [based on 1.8.7] | blueyed | Mod Submissions | 0 | 01-27-2005 04:13 AM |
libs/search_function.php extended and beautified | blueyed | Mod Submissions | 1 | 12-13-2004 05:02 AM |
Variable with the URL in it (in spider.php) | link92 | How-to Forum | 1 | 08-19-2004 02:14 PM |