![]() |
|
![]() |
#1 |
Green Mole
Join Date: Dec 2003
Posts: 3
|
Simple search
Hi,
I am testing PhpDig on my site (www.pathway.gr) in order to replace google search. I am new to php and I wonder if there is a way to make search more simple: to have a fixed number of displayed results eg. 10 and by default search any part of a word, so the user must enter just a "word" and the go button. Thank you in advance John |
![]() |
![]() |
![]() |
#2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Just change the following in the config.php file:
PHP Code:
Code:
<form action="CHANGE_ME/search.php" method="post"> <table> <tr> <td><input name="query_string" type="text" size="35"></td> <td><input name="search" type="submit" value="Go"></td> </tr> </table> </form>
__________________
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. |
![]() |
![]() |
![]() |
#3 |
Green Mole
Join Date: Dec 2003
Posts: 3
|
works fine
it works fine,
if i do manage to make it work correctly with greek and latin characters it would be perfect. Thank you John |
![]() |
![]() |
![]() |
#4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. For Greek and Latin support check out this thread.
__________________
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. |
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A simple include in my php template doesn't appear | claudiomet | How-to Forum | 4 | 08-23-2004 06:35 AM |
Simple way of inserting a search form | waytorussia | How-to Forum | 3 | 10-08-2003 05:23 PM |