Hi there,
i have the folowing search query
$query = "SELECT * FROM $tablename WHERE Date_Origin LIKE '%".$Date_Origin."%' OR Category LIKE '%".$Category."%' OR description LIKE '%".$description."%'
OR DY_nr LIKE '%".$DY_nr."%'
OR Software LIKE '%".$Software."%'
OR Software_version LIKE '%".$Software_version."%'
OR Firmware LIKE '%".$Firmware."%'
OR Originator LIKE '%".$Originator."%'
OR Keywords LIKE '%".$Keywords."%'
OR Answer_keywords LIKE '%".$Anser_keywords."%'";
Now when i apply this search it will return all content, because when a variable is blank it will just show every content.
How can i make the blank variables not shown, so when some1 fills in the search form and wants to search for category and certain keywords,so how can i make it that it will only show content wich matches there 2 things?
Can this be done in the same query?
Thx in advance
With kind regards,
Shadeless