PhpDig.net

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

Reply
 
Thread Tools
Old 08-26-2005, 02:42 PM   #1
kjhay
Green Mole
 
Join Date: Aug 2005
Posts: 3
Results to display info from mysql table

I'm using phpdig to search a large number of pdf files, which also have their title, author and source stored in a mysql table (same db as phpdig uses).

What would be the best way to go about adding the title, author and source information to the search results?

By the way, fantastic job on PHPDig, setting it up and configuring for pdfs was pleasantly simple.
kjhay is offline   Reply With Quote
Old 08-26-2005, 08:35 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
What version of PhpDig are you using, and do you have CONTENT_TEXT set to zero or one?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 08-29-2005, 09:31 AM   #3
kjhay
Green Mole
 
Join Date: Aug 2005
Posts: 3
PHPDig 1.8.7

CONTEXT_TEXT=1
kjhay is offline   Reply With Quote
Old 09-01-2005, 07:03 PM   #4
kjhay
Green Mole
 
Join Date: Aug 2005
Posts: 3
Bump.

If you could just point me in the right direction (eg in which function the result urls are selected from the database, and in which function the results are formatted).

Thanks!
kjhay is offline   Reply With Quote
Old 09-03-2005, 01:34 PM   #5
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
In robot_functions.php you might try running a query within the IF of the following code to append text to $result and see if that does it:
Code:
             if ((is_array($result)) && (count($result) > 0)) {
                // run query and stick content into $result[] here
                $f_handler = fopen($tempfile1,'wb');
                fwrite($f_handler,str_replace('ลก',' ',str_replace(chr(0xad),'-',implode(' ',$result))));
                fclose($f_handler);
             }
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

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
Problem Mysql when no results noel Troubleshooting 4 10-27-2005 09:56 AM
Temp Spider table Converted to HEAP table GunMuse Mod Requests 0 04-22-2005 01:25 PM
Results display-misses opening paragraph alan-s How-to Forum 1 12-10-2004 12:41 PM
How to display results on an existing page ? alexuslesours How-to Forum 1 12-08-2004 10:59 AM
How to display all results? Edomondo How-to Forum 1 12-02-2004 06:03 PM


All times are GMT -8. The time now is 07:56 AM.


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