PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 10-01-2003, 09:45 PM   #1
David J Harmon
Orange Mole
 
David J Harmon's Avatar
 
Join Date: Sep 2003
Location: Corbin KY
Posts: 45
Post To php or not to php

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???

David
David J Harmon is offline   Reply With Quote
Old 10-02-2003, 07:07 AM   #2
jirving
Green Mole
 
Join Date: Sep 2003
Posts: 10
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.
jirving is offline   Reply With Quote
Reply


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
PHP 5 witness Troubleshooting 2 12-04-2007 01:55 AM
PHP as CGI Edomondo Troubleshooting 3 02-05-2005 02:32 AM
.php/x/x problem nosrak Troubleshooting 1 01-14-2005 08:29 PM
robot_functions.php gunwalt Troubleshooting 3 02-09-2004 02:04 AM
Newbie : How to include PHP file (.php) frostbyte How-to Forum 1 01-04-2004 12:42 PM


All times are GMT -8. The time now is 08:09 AM.


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