PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 03-04-2006, 11:03 PM   #1
RonHoef
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
RonHoef is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 03:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.