|
01-20-2007, 12:51 PM | #1 |
Green Mole
Join Date: Jan 2007
Posts: 2
|
Help including search.php
Hello,
I am having trouble embedding the results of my phpdig search on the website since I upgraded to 1.8.8. What I used to do was have an if statement on the index page where by if someone had submited a search query it would include search.php and display the results. The code is as follows: if ($_GET[content]=='search'){ include('/home/xxxxxx/public_html/search.php'); } This would work beautifuly because I had created a template which would output a table that used all of the styles created for the site. Now however when I submit the form on the index page and it includes the search.php I get no results. I can't understand it, its as if it isn't searching or something. however when I search directly through search.php it works just fine. Somehting doesn't seem to be working because of the include. Any help would be greatly appreciated. Let me know if you need any more information. |
01-20-2007, 12:59 PM | #2 |
Green Mole
Join Date: Jan 2007
Posts: 2
|
Sorry I should mention that the file which I want to embed the results is in the / folder and the search file in the /search/ folder. I looked at the information in the configuration file about searching from the root folder instead of the /search/ folder but it didn't seem to work. Thanks.
|
02-02-2007, 01:53 PM | #3 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Is there a form on your index page? If so, what are its contents? Untested, but perhaps try the following. It's hard to say for sure, as there isn't enough info for me to go on.
Code:
if ($_REQUEST['query_string'] && $_REQUEST['search'] == 'Go') { include('/home/xxxxxx/public_html/search.php'); }
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excluding/Including by Path | djwm | How-to Forum | 2 | 01-02-2005 05:13 AM |
including file with php does not work... | Fking | How-to Forum | 5 | 10-09-2004 11:47 AM |
Search all indexed pages in search.php | nightrat | How-to Forum | 1 | 09-14-2004 04:52 AM |
custom depth of search per site in cgi (including urllist) | b2l_grefix | Mod Submissions | 0 | 07-17-2004 12:49 PM |
.shtml pages and including borders | Nosmada | How-to Forum | 7 | 01-08-2004 01:04 AM |