Ok, so I got that figured out. And I even read around here enough to create my own customized page by making the output an array. Everything on it works great except for :
PHP Code:
$output2['text'];
I read the post about CONTENT_TEXT and i have it set to 1. I had it displaying the text before I made my own page.
Here is my search.php file.:
PHP Code:
<?php
/*
--------------------------------------------------------------------------------
PhpDig Version 1.6.x
This program is provided under the GNU/GPL license.
See the LICENSE file for more information.
All contributors are listed in the CREDITS file provided with this package.
PhpDig Website : [url]http://www.phpdig.net/[/url]
--------------------------------------------------------------------------------
*/
$relative_script_path = './search';
if (is_file("$relative_script_path/includes/config.php")) {
include "$relative_script_path/includes/config.php";
}
else {
die("Cannot find config.php file.\n");
}
if (is_file("$relative_script_path/libs/search_function.php")) {
include "$relative_script_path/libs/search_function.php";
}
else {
die("Cannot find search_function.php file.\n");
}
// extract vars
extract(phpdigHttpVars(
array('query_string'=>'string',
'refine'=>'integer',
'refine_url'=>'string',
'site'=>'integer',
'limite'=>'integer',
'option'=>'string',
'lim_start'=>'integer',
'browse'=>'integer',
'path'=>'string'
)
));
$output = phpdigSearch($id_connect, $query_string, $option, $refine,
$refine_url, $lim_start, $limite, $browse,
$site, $path, $relative_script_path, 'array');
if (is_file("search_page.php")) {
include "search_page.php";
} else { exit(); }
?>
And here is the code I am using to display the test:
PHP Code:
<?php
if (!empty($output['results'])) {
$num_out = count($output['results']);
} else { $num_out = 0; }
$num_start = $lim_start + 1;
$num_end = $lim_start + $num_out;
for ($i=$num_start; $i<=$num_end; $i++) {
echo $i.". ";
$output2 = $output['results'][$i];
?>
<?php echo $output2['page_link']; ?>
<br>
<?php echo $output2['text']; ?>
<br>
<?php echo $output2['update_date']; ?> | <?php echo $output2['weight']; ?><sup>%</sup> Accurate
<br>
<?php echo $output2['complete_path']; ?>
<hr>
<?php
echo "<br><br>";
}
Thanks is advance