I am trying to include a file from within a directory.
my layout is like this:
main/search.php
main/includes/search_function.php
main/template/search.tpl.php
inside my search_function.php I want to include a file if no results exist.
my php looks like this:
[code=php] if ($results)
{
$browse_content .= ‘<td valign=”top” class=” ‘.$background.'” width=”180″><div id=”contentF”> so on and so forth…’;
}
else
{
$browse_content = include(‘no_results.php?q=’ . $_REQUEST[‘keywords’] . ”);
}
I cannot get the file to “include”, i tried several ways, also like this:
[code=php] else
{
include(‘no_results.php?q=’ . $_REQUEST[‘keywords’] . ”);
}
How would i go about this?? do I need an absolute url or??