Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to write a request ?

Quote Reply
How to write a request ?
hi,

Sorry for my bad english first !

my website is www.lot-real-estate.com

i would like to have an url on an other web site to make a request on the above website :

each house in the data base has a reference. for each agency the reference begins always by the same three letters ( for the agency in the city of figeac the letters are "fig" ).

i would like to search all the houses for one agency . so the most simple thing is to search all the ads beggining with "fig" ( for example ).

so how to write that url : http://www.lot-real-estate.com/......



Thank you

pes... a beginner
Quote Reply
Re: [pes] How to write a request ? In reply to
Not certain I understand - but I think you want something like this:

http://www.lot-real-estate.com/cgi-bin/search.cgi?query=fig&substring=1

Note that you'll need to be using an index for this to work. (Go to admin->database->links->properties and check that the indexing at the bottom of the page is internal). And you'll also need to add weights to the fields that you want to be able to search on - e.g. the reference field.