View Full Version : To php or not to php

David J Harmon
10-01-2003, 09:45 PM
I'm trying to put a php code into a template file (like newspapter.html) but it will not work how would I do this???


10-02-2003, 07:07 AM
I had the same question. Do do this you would have to modify phpdig source code.

I personally build your own php page that displays the results using the array that is returned from the function. That way you have complete flexibility to add all the code you want.

Here is what I did:

create a template for what you want without the seach results code.

$result = phpdigSearch($id_connect, $query_string, $option, $refine,
$refine_url, $lim_start, $limite, $browse,
$site, $path, $relative_script_path, 'array');

print_r($result) ;

This will give you a printout of the entire array. That way you can construct your own custom function for displaying the information.