View Single Post
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