cgraz,
I didn´t understand too well your previous message
Actually my query looks like this:
SELECT species, comname
FROM passerines
WHERE species LIKE '%varspecies%' AND comname LIKE '%varcomname%'
varspecies
value = 1
runtime value= $HTTP_GET_VARS['varspecies']
varcomname, same basically as as varspecies but with change of name.
I am still getting all the records if I don´t put search values in the form.
If I put a search value in one of the fields that has no approximate corresponding value in the database I get the message "No results found" which is exactly what I am supposed to get.
However, if I leave the search form blank, without adding values, and then press submit...all the records are listed on the results page.
What I don´t know how to do is tell it if both (in this case) search text boxes are left empty "No results found" should appear.
Any advice?