I have one table:
CREATE TABLE IF NOT EXISTS `test` (
`firstname` varchar(100) NOT NULL,
`lastname` varchar(100) NOT NULL,
`nickname` varchar(100) NOT NULL
)
I have this html code:
<form action="" method="post">
<input name="firstname" type="text" />
<input name="lastname" type="text" />
<input name="nickname" type="text" />
<input type="submit" value="search" />
</form>
I need that when I fill firstname text box my query condition is:
firstname=$_REQUEST['firstname']
And when this text box is not filled in this condition should not be used. I want it that when I fill two text boxes or three text boxes, the correspond condition is checked but I need one query to do this.