First of all, I'm a newbie PHP Developer.
I am developing a website which has a database that contains employee records. Each is assigned ID, Name, mobNo, Address etc..
There's a filter panel in the website with many filters to use like name filter, mobNo filter...
What I exactly want is, if 1 filter is selected, PHP will process just 1 MySQLi Query something like:
WHERE '$param' LIKE '%$paramValue%'
If user selects 2 filters, say Name and mobNo, PHP should process 2 queries something like:
WHERE '$param' LIKE '%$paramValue%'AND '$param2' LIKE '%$paramValue2%';
Chain should follow on.. I will use AJAX but you need NOT to worry about it.. I will integrate it myself.