PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 01-20-2007, 11:51 AM   #1
dhoyos
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.
dhoyos is offline   Reply With Quote
Old 01-20-2007, 11:59 AM   #2
dhoyos
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.
dhoyos is offline   Reply With Quote
Old 02-02-2007, 12:53 PM   #3
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter 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
Excluding/Including by Path djwm How-to Forum 2 01-02-2005 04:13 AM
including file with php does not work... Fking How-to Forum 5 10-09-2004 10:47 AM
Search all indexed pages in search.php nightrat How-to Forum 1 09-14-2004 03:52 AM
custom depth of search per site in cgi (including urllist) b2l_grefix Mod Submissions 0 07-17-2004 11:49 AM
.shtml pages and including borders Nosmada How-to Forum 7 01-08-2004 12:04 AM


All times are GMT -8. The time now is 11:42 AM.


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